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.
Setting a value to a specific textbox
Hello,
In my web page I have several text boxes…with the labels “Name #” , “Mid Name #”, “Last Name #”.
I am using Sahi, and in my test I want to set the port value in the first textbox “Name #” to some value, like “20”.
I am trying: textbox(0).near(browser.span("Port #")).setValue(Alex);
However, Sahi confuses the text boxes..and doesn’t know which text box do I mean… it actually tries to set the value into the “Mid Name #” text box…
Can I make the specification of my text box more exact? Like to search for the label “Name #” ?
In my web page I have several text boxes…with the labels “Name #” , “Mid Name #”, “Last Name #”.
I am using Sahi, and in my test I want to set the port value in the first textbox “Name #” to some value, like “20”.
I am trying: textbox(0).near(browser.span("Port #")).setValue(Alex);
However, Sahi confuses the text boxes..and doesn’t know which text box do I mean… it actually tries to set the value into the “Mid Name #” text box…
Can I make the specification of my text box more exact? Like to search for the label “Name #” ?
Comments