im trying to locate an element by name or id with selenium java but i am not able to locate
System.setProperty("webdriver.chrome.driver",driverPath + "chromedriver");
System.out.println(driverPath + "chromedriver");
WebDriver driver = new ChromeDriver();
WebDriverWait wait = new WebDriverWait(driver, 15);
String baseUrl = "xxxx";
driver.get(baseUrl);
driver.manage().window().maximize();
ByName salutation = new ByName("salutation");
wait.until(ExpectedConditions.elementToBeClickable(salutation));
WebElement root1 = driver.findElement(salutation);
And thats the message that i got. im super confused why i got this error message saying "method: css selector" because i'm obviously not using the css selector:
Exception in thread "main" org.openqa.selenium.TimeoutException: Expected condition failed: waiting for element to be clickable: By.name: salutation (tried for 15 second(s) with 500 milliseconds interval)
at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:95)
at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:272)
at de.xx.tests.XXTests.main(XXTests.java:29)
Caused by: org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"css selector","selector":"*[name='salutation']"}
(Session info: chrome=78.0.3904.108)