Timeline for How do we locate a span element in selenium that has nothing but text in it?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 19, 2016 at 9:58 | comment | added | Rohan Kalia | <div id="id_center_chosen" class="chosen-container chosen-container-single chosen-with-drop chosen-container-active" style="width: 195px;" title=""> <a class="chosen-single" tabindex="-1"> <span>None</span> | |
Sep 19, 2016 at 8:54 | comment | added | Yu Zhang | can you please provide the whole page's html? | |
Sep 19, 2016 at 8:32 | comment | added | Rohan Kalia | Still not working the xpath expression I used is: driver.findElement(By.xpath("//a[@class='chosen-single']/span")).click(); | |
Sep 19, 2016 at 8:23 | history | answered | Yu Zhang | CC BY-SA 3.0 |