Posts by diamaral • 41 points
4 posts
-
0
votes1
answer4841
viewsA: How to validate a text (Assert) in a given field in Selenium Webdriver?
Oops! Follow the code that can help you: String textoElement = driver.findElement(By.xpath("html/body/div[1]/div/div[4]/article/div[1]/div/header/div[1]/h1\n")).getText();…
-
0
votes2
answers718
viewsA: Clear() and Sendkeys() in a single method
There are 2 options I know, but I believe that the best alternative really is to create a method for action, as the examples below: @Test public void clearSendTest() throws InterruptedException {…
-
0
votes2
answers684
viewsA: Click on button inside an iframe
you can map and already access the frame: Private Webdriver driver; @Before public void setUp() throws Exception { System.setProperty("webdriver.chrome.driver",…
-
0
votes1
answer167
viewsA: How to use the Javascript pdf.js library in Selenium with Java via the Javascriptexecutor clase
Follow two API’s that you can add to your Maven project to read PDF: with.itextpdf itextpdf 5.5.13 org.apache.pdfbox pdfbox 2.0.9…