Without using send Keys how to send data?

All QuestionsCategory: Java ScriptWithout using send Keys how to send data?
Chetan Shidling Staff asked 4 years ago

Write a JavaScript code.

1 Answers
Anonymous answered 4 years ago
  1. Before using sendkeys() write click() method to click inside textfield i.e: driver. findElement(By.name(“phone”)). click(); driver.
  2. Another way is to use javascript to input text in texfields like this: WebElement wb = driver. findElement(By.name(“phone”)); JavascriptExecutor jse = (JavascriptExecutor)driver; jse.