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.

Drop down list box issue

kishharikishhari Members
edited November -1 in Sahi - Open Source
I have a security question in my login page , The question is a drop down list and the arrow to click is a image icon the question doesn't have a id in the input tag, it has only parent id login.securityQuestions.

When i recorded the script and played back it was failing at this question. I want to know a solution how to make the script work without a id for that particular question? any idea

can attach a screen shot for ur reference. Attaching the div class of the component


<DIV class="x-form-field-wrap s-form-field-wrap s-loginformfieldwrap x-trigger-wrap-focus" id="login.secretQuestions" style="WIDTH: 150px" __eventBits="7040"><INPUT class=" x-form-field x-form-text x-triggerfield-noedit x-form-focus " style="WIDTH: 131px" readOnly autocomplete="off" __eventBits="7165" $H="162" value="" />
<IMG class="x-form-trigger x-form-trigger-arrow " height="23" src="clear.gif" width="18" __eventBits="125" $H="146" />
</DIV>
Tagged:

Comments

  • by using the mouse over technique i was able to proceed further on this issue, i want to know if we have any better way to do it.

    my code for the drop down i used was:

    _click(_div("Where were you born?"));
Sign In or Register to comment.