18 January 2026:


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 to get all values from a textbox, not selectbox

shamsham Members
edited March 2012 in Sahi - Open Source
Hi all,

I encountered a problem where i have a drop down button which houses some values .
But the DOM is a _textbox() and not _selectbox.

when i look at all the accessors available i can find only _textbox("id_node_interface") to be listed.
This has a drop down arrow which when clicked shows values to choose from.

so its like this.
1.) textbox with a drop down image exists, I can click that
2.) values it contains are like this..
a.) _div("e1000g1[1]");
b.) _div("e1000g0[1]");

when such is the case how do i choose these elements.?

I tried,
_click(_div("e1000g1"), _in(_textbox("id_node_interface")));
but it did not work as the element is listed as "e1000g1[1]"

Any ideas?

Comments

  • Hi

    could you provide the URL you are testing? I can't say much about the problem without the html source or the live website.

    Regards
    Wormi
Sign In or Register to comment.