mardi 6 août 2019

How to get xpath of this span in java with selenium?

enter image description here

I can't get xpath of this html as it gives me error and the test case gives failure

I tried by class name of it's outer div or button

WebDriverWait wait2 = new WebDriverWait (ChromeBroswerObject, 5);
        WebElement element2 = wait2.until(ExpectedConditions.elementToBeClickable(By.xpath("//*[@id=\"root\"]/div/div/div[3]/div/div[2]/section[2]/div/div[1]/a/p[1]")));
        element2.sendKeys(Keys.ENTER);[enter image description here][1]

Aucun commentaire:

Enregistrer un commentaire