0

Im using sendkeys to enter text into the text box in safari browser using selenium web driver in Mac OS. But when i try submit it it is giving error saying there is no text entered. but i can able to see the text in the textbox.

Please provide me some suggitions for this.

Shubham Jain
  • 16,610
  • 15
  • 78
  • 125

1 Answers1

2

I was able to resolve this issue by adding JavaScript Event after entering the text.

JavascriptExecutor jsExecutor = (JavascriptExecutor) driver; 
jsExecutor.executeScript("$(arguments[0]).change();", WebElement);
kvorobiev
  • 5,012
  • 4
  • 29
  • 35