Trying to add $100-$250 agter locating the element using sendKeys? value is not getting added. how to add $100-$250

driver.findElement(By.id(“budget”)).sendKeys(“$251-$500”);\Value is not getting added How to Add above value?

Default Asked on November 17, 2014 in Selenium WebDriver.

Selenium always have issues with Special character with SendKeys, I suggest you to look for another way with Robot Class or any thing.

on November 18, 2014.
Add Comment
  • 2 Answer(s)

    Because $ is special char. Please put slash before it

    Train Answered on November 17, 2014.
    Add Comment

    Where i have to put slash? i didnot get.

    Default Answered on November 18, 2014.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.