Object is not recognizing through webdriver



  • List val=driver.findElements(By.xpath("//div[@class='ui basic button floating item dropdown']//div//a"));
    

    is not identifying through webdriver. But this xpath perfectly recognizing at chrome browser.



  • Please verify it within the chrome console with the following command:

    $x("yourxpat")
    

    This will show you how many elements are you getting, i know some friends uses the find by option instead of the console and they only show one by one and if it finds multiple it will fail.


Log in to reply
 

Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2