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.
Java Client: radio element can't be found after asserting existence
I'm working with Sahi Pro's Java client. I'm trying to click or check a specific radio button which is sitting next to a search result. The search result corresponds to an entry in a database and therefore has a specific primary key associated with it.
I have the primary key ID and Sahi shows me that the radio buttons can be accessed using their primary key IDs as strings (radio("2") for instance), by their names (radio("CECourseIdnt") would work) or their positions on the page (radio(0)).
I'd like to use the ID string ("2") so I know I'm finding the exact radio button I want. I assertTrue that it exists, and the test passes. Then I move on to actually click it, using the same method I used when testing its existence. But this time, the browser can't find it:
error:_click(_radio("2"))
Error: The parameter passed to _click was not found on the browser
Like I said, this is immediately after the existence of the radio button is confirmed. Why would it work once and never again? If I statically set it as radio(0), it will work both times.
I'm using IE 9.0.8112.16421 and Sahi Pro 4.3.2.
I have the primary key ID and Sahi shows me that the radio buttons can be accessed using their primary key IDs as strings (radio("2") for instance), by their names (radio("CECourseIdnt") would work) or their positions on the page (radio(0)).
I'd like to use the ID string ("2") so I know I'm finding the exact radio button I want. I assertTrue that it exists, and the test passes. Then I move on to actually click it, using the same method I used when testing its existence. But this time, the browser can't find it:
error:_click(_radio("2"))
Error: The parameter passed to _click was not found on the browser
Like I said, this is immediately after the existence of the radio button is confirmed. Why would it work once and never again? If I statically set it as radio(0), it will work both times.
I'm using IE 9.0.8112.16421 and Sahi Pro 4.3.2.
Comments