How to use TextBox textbox = driver.findTextBox(by); in your code
Which of the following do you prefer?
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(30));
wait.until(ExpectedConditions.elementToBeClickable(textBoxId));
WebElement textbox = driver.findElement(textBoxId);
textbox.sendKeys(keyword);
or
TextBox textbox = driver.findTextBox(textBoxId);
textbox.type(keyword);
Second one, right?
Keep reading with a 7-day free trial
Subscribe to Selenium For Beginners to keep reading this post and get 7 days of free access to the full post archives.