mardi 29 mai 2018

Unable to click on a button through any object locators?

I am trying to execute below Selenium Web driver script, But I am getting org.openqa.selenium.ElementNotVisibleException: Element is not currently visible Login

@Test

public void BrowserInvocation() {
    System.setProperty("webdriver.chrome.driver", "C:\\Users\\DOGETHER\\Desktop\\Website\\chromedriver.exe");
       @SuppressWarnings("unused")
       ChromeDriver driver=new ChromeDriver();
      driver.get("http://phasorlab-web-dev.s3-website-us-east-1.amazonaws.com/");     /*Get URL */
      driver.manage().timeouts().implicitlyWait(65, TimeUnit.SECONDS);

      driver.findElementByXPath("//span[@class='button-inner']").click();
     // driver.findElementByClassName("button-inner").click();

      //driver.findElementByTagName("[text()='Login']").click();

Aucun commentaire:

Enregistrer un commentaire