WebDriver with Java - Not able to get all the text using Webdriver
问题 I'm not able to get all the text on this website - https://niftygateway.com/marketplace Using this simple code - String iterativeXpath = "(//*[@id='root']/div/div[2]/div[2]/div/div[2]/div[2]/div[1]/div/div)"; iterativeXpath = iterativeXpath.substring(0, iterativeXpath.length()-1); WebDriverWait wait = new WebDriverWait(driver, 15); for(int i = 1; i <=20; i++){ wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(iterativeXpath+"["+i+"])"))); System.out.println(driver.findElement