I am having an issue with typing text in a textbox using Selenium Webdriver.
I do the following:
element.clear(); element.click(); element.sendKeys(Keys.BACK_SPACE); element.sendKeys("Joe");
and it types in "Joe", but it is grayed out, meaning it just clears the default value, and types instead of clicking on the textbox, and then typing it. When I manually type in "Joe", I click on the textbox so that the cursor is in the textbox, but element.click() does not do this for me.
Can anyone please suggest me a solution?