html - No able to select particular check box using Selenium (Java) -


i want click on store pickup available checkbox on following page

http://www.target.com/c/pants-shorts-baby-toddler-boys-clothing/-/n-59yk1#navigation=true&viewtype=medium&sortby=newest&isleaf=true&navigationpath=59yk1&parentcategoryid=9976007&facetedvalue=/-/n-59yk1&ratingfacet=0&categoryid=139007 

and particular html part has

<input type="checkbox" name="facetid" id="in store, onlinecheckbox3"  value="10058540" omniture="store pickup eligible"> 

i tried many thing by.id() , by.cssselector() , xpath also.

can try , tell me working code ... in-between continue trying.

the problem checkbox want click hidden initially. can click this:

driver.findelement(by.xpath("//a[contains(text(),'in store, online')]")).click(); driver.findelement(by.xpath("//span[contains(text(),'store pickup eligible')]/../../input")).click(); 

this expand element "in store, online", click checkbox labelled "store pickup eligible".


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -