There is text label on a webpage, and I am trying to click on that to
open a pop-up window,but not getting opened. here is the HTML code:
<input type="hidden" name="EmpId" value="" id="popupEmpId">
<input type="text" name="EmpCode" value="" readonly="readonly"
class="textMedium250" id="popupEmpCode" autocomplete="off"> <a
href="#f2"><label onclick="checkForPopup('EmpPopupDiv','Select a
Emp',640,true,refreshConditionOptions);"> + Search for a Emp</label>
I have to click on the field + Search for a Emp, but could not do
+ Search for a Emp
No i extract the html above from a webpage - onto which i am creating a web automation script.but i am not able to click on the "labeled link", thus couldn't proceed further. I am using "selenium" with Ruby 1.9.3.
OK, then I need to see your raw page (HTML+Ruby). You need to look at the part where :onclick=>"..." and ensure that the it concatenate the variable.