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.
Error: The parameter passed to _getText was not found on the browser
The first assersion is passing and the second one is failing. Both assersion statements are written in same way with some changes for elements.
I found another topic with the same problem but solution is not provided there and it is closed. Please let me know the solution.
_assertContainsText("Deactivated", _cell(0, _near(_cell("TestUser")), _under(_tableHeader("Action")))); at Dec 21, 2011 3:10:38 PM
_assertContainsText("Help Desk", _cell(0, _near(_cell("TestUser")), _under(_link("Type"))));
Error: The parameter passed to _getText was not found on the browser at Dec 21, 2011 3:10:48 PM
Regards,
Anoop
I found another topic with the same problem but solution is not provided there and it is closed. Please let me know the solution.
_assertContainsText("Deactivated", _cell(0, _near(_cell("TestUser")), _under(_tableHeader("Action")))); at Dec 21, 2011 3:10:38 PM
_assertContainsText("Help Desk", _cell(0, _near(_cell("TestUser")), _under(_link("Type"))));
Error: The parameter passed to _getText was not found on the browser at Dec 21, 2011 3:10:48 PM
Regards,
Anoop
Comments
Can you please check the UI relation you are using for the second assertion?
Regards
Sumitra
I got the second assertion working by changing _link("Type") to _tableHeader("Type").
While recording it is getting the element properly as _link("Type") only. I was manually changing it to _tableHeader("Type").
_assertContainsText("Help Desk", _cell(0, _near(_cell("TestUser")), _under(_tableHeader("Type"))));
Both "Action"(the one which is used in first assertion) and "Type" are the headers of the same table. "Type" header has an additional functionality that when clicking it, the list will be sorted alphabetically according to Type. I think thats why it is recording the property as _link. Anyways I got it working even though I am not sure whether this is the actual solution.
Thanks,
Anoop