Do you know how to locate a link using its text in Selenium?
Submitted by: MuhammadlinkText() and partialLinkText() are used for link location.
The examples:
WebElement link1 = driver.findElement(By.linkText(“some_link_test”));
WebElement link2 = driver.findElement(By.partialLinkText(“some_link_part_text”));
Submitted by: Muhammad
The examples:
WebElement link1 = driver.findElement(By.linkText(“some_link_test”));
WebElement link2 = driver.findElement(By.partialLinkText(“some_link_part_text”));
Submitted by: Muhammad
Read Online Automation Job Interview Questions And Answers
Top Automation Questions
☺ | What is Selenium? |
☺ | Tell me does the Selenium have any limitations? |
☺ | Tell me what is an Absolute XPath? |
☺ | Explain me what the WebDriver supported Mobile Testing Drivers do you know? |
☺ | Tell us what is the alternate way to click on login button? |
Top Testing Categories
☺ | Manual Testing Interview Questions. |
☺ | Rational TestSuite Interview Questions. |
☺ | QTP Interview Questions. |
☺ | Database Testing Interview Questions. |
☺ | Software QA Interview Questions. |