A rejoint le : 18 mai 2022

À propos

VirtuaGirl.HD...Models ===> DOWNLOAD

VirtuaGirl.HD...Models ===> DOWNLOAD

Feb 18, 2020 Q: How to get a desired view on a Website using selenium webdriver I am a beginner for selenium webdriver. I need to check whether a table "Web2 is visible or not" in a website. I have tried a few ways, one using xpath and other using JavaScript. Here is the code for the same, @Test public void testHref() { try { driver.get(""); Thread.sleep(2000); Assert.assertEquals("It's visible!", driver.findElement(By.xpath(".//*[@id='_yui_3_18_1_1347386140745_1558']/table[1]/tbody/tr[1]/td[1]/a")).getText()); } catch (Exception e) { e.printStackTrace(); } } First time when I ran the code, the table was visible, so my test was successful. But when I repeated it, the table was not visible. I am not sure what went wrong. A: I think the reason you're experiencing that behavior is because you're asserting that an element is visible, and



Plus d'actions