Chuchoo Chuchoo - 1 year ago 92
Java Question

how do I pick a link with empty class using cssSelector - Java Selenium

In my Selenium test I need to grab all the links inside a table that has empty class as shown below.

<a class="" href="" data-date="2016-11-18T00:00:00-05:00">18</a>

How do i achieve this using cssSelector ?

Thank You!

Answer Source

You should be able to use "a[class='']".

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download