18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
How do I capture Java scripts Responses ?
Hi,
I am new to Sahi .
I need sahi to capture the responses Like "Firebug" does and Fail the script when the response code is 404/400 etc.
Also i want to know what is the use of "View Browser scripts" link on the controller.
After playing my script when i "View Browser scripts" Only message displayed is "1". What is its significance?
Am i missing something?
Can somebody please guide me through this asap....
Thanking in Advance.
Akshada
I am new to Sahi .
I need sahi to capture the responses Like "Firebug" does and Fail the script when the response code is 404/400 etc.
Also i want to know what is the use of "View Browser scripts" link on the controller.
After playing my script when i "View Browser scripts" Only message displayed is "1". What is its significance?
Am i missing something?
Can somebody please guide me through this asap....
Thanking in Advance.
Akshada
Comments
Thank you!!
When a 404 response occurs, Sahi shows a different page. Please assert properties of that page.
Sahi does not operate on the protocol level like firebug, so you will not be able to pass or fail based on a 404 response code. If the browser behaves in a certain way because of 404 you can assert on that behaviour.
View Browser scripts shows functions defined in <browser> </browser> tags. If you do not have browser functions, this page would be empty.
Btw, if you write ASAP in your queries, people may not answer it because it is considered rude.
Regards,
Narayan
Thank you for the reply!!
Will keep in mind