JAVA
driver.findElement(By.id("Value")).sendKeys(Keys.RETURN);
หรือ,
driver.findElement(By.id("Value")).sendKeys(Keys.ENTER);
PYTHON
from selenium.webdriver.common.keys import Keys
driver.find_element_by_name("Value").send_keys(Keys.RETURN)
หรือ,
driver.find_element_by_name("Value").send_keys(Keys.ENTER)
หรือ,
element = driver.find_element_by_id("Value")
element.send_keys("keysToSend")
element.submit()
ทับทิม
element = @driver.find_element(:name, "value")
element.send_keys "keysToSend"
element.submit
หรือ,
element = @driver.find_element(:name, "value")
element.send_keys "keysToSend"
element.send_keys:return
หรือ,
@driver.action.send_keys(:enter).perform
@driver.action.send_keys(:return).perform
ค#
driver.FindElement(By.Id("Value")).SendKeys(Keys.Return);
หรือ,
driver.FindElement(By.Id("Value")).SendKeys(Keys.Enter);