How to Click a Link by Text in Selenium WebDriver Java

JAVA.

< 1 minute readHere is how to click a link by text with Selenium WebDriver in Java using the built in WebDriver helper methods or by XPath: Click link by full text using Selenium WebDriver WebElement linkByText = driver.findElement(By.linkText(“My Link”)); linkByText.click();

How to Use the DataProvider in TestNG with a JAVA Example

JAVA TestNG.

2 minutes readWe are going to show how to use the DataProvider in your test cases created with the TestNG unit testing framework. DataProvider are used in order to create data-driven tests. Basically, it will help you to run the same test case, but with different data sets. Examples of DataProviders We are going to use the… Read more »