CS Electrical And Electronics
@cselectricalandelectronics

Without using send Keys how to send data?

All QuestionsCategory: Java ScriptWithout using send Keys how to send data?
CS Electrical And Electronics Staff asked 3 years ago

Write a JavaScript code.

1 Answers
Anonymous answered 3 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.