如何找到标记为<a classname="xxx" href="xxx"> in ScalaTest +Selenium

时间:2017-06-29 10:08:49

标签: selenium-webdriver scalatest

I have an element which needs to be clicked for Date layout. The locator corresponding to the element I found is classname="xxx" and below gives my scalatest code to click on the particular element. when I run the script, it gives "web element not found" exception. Can you please guide on this

Code:
        click on className("selectedBtnDate")

element Inspector:
        <li class="datepickertooltip">
        <span class="tooltiptext">Date</span>
        <a class="selectedBtnDate" href="#"></a>
        </li>

0 个答案:

没有答案