Which locator can I use for the below?
<span class="tile-name ng-binding">Payment Partner</span>
Update from OP's comments:
Code trial 1:
driver.findElementByXPath("//span[text()='Payment Partner']").click();
Error:
Exception in thread "main" org.openqa.selenium.ElementNotVisibleException: element not visible;
Code trial 2:
driver.findElementByCssSelector("Payment Partner").click();
Error:
Exception in thread "main" org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"css selector","selector":"Payment Partner"}
Code trial 3:
WebDriverWait wait = new WebDriverWait(driver, 20);wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath ("//span[text()='Payment Partner']')")));