Complete the code to find an element using partial link text.
WebElement link = driver.findElement(By.[1]("Learn"));
The method partialLinkText finds a link element containing the given text partially.
Complete the code to click on a link found by partial link text.
driver.findElement(By.[1]("Contact")).click();
click() after finding the element.Clicking on a link found by partialLinkText requires using that method to locate it first.
Fix the error in the code to correctly find a link by partial link text.
WebElement element = driver.findElement(By.[1]("About Us"));
The correct method name is partialLinkText with exact casing.
Fill both blanks to create a list of elements found by partial link text and print their count.
List<WebElement> links = driver.findElements(By.[1]("Help")); System.out.println(links.[2]());
get() instead of size() to get count.click() on a list instead of an element.partialLinkText finds all links containing the text, and size() returns the count.
Fill both blanks to find a link by partial link text, check if it is displayed, and print the result.
WebElement link = driver.findElement(By.[1]("Sign")); boolean visible = link.[2](); System.out.println(visible);
Use partialLinkText to find the link, isDisplayed() to check visibility, and print the boolean result directly.