I'm trying to write some automated java tests using selenium and PhantomJS driver but I'm having a big problem trying to interact with a text field.
http://www.jigsaw-online.com/ I'm trying to send some text to the search box but I've tried lots of different find by locators and I always get ElementNotVisibleException when I try to send keys to the field
@FindBy(xpath="//header//form[@id='search']//input[@type='search']")
@FindBy(xpath="//input[@name='w']")
@FindBy(xpath="//form[@id='search']//input[@type='search']")
I know all of these xpath's are correct because I can get the attributes from it in the test.
The only thing I can think of is that if you scroll down the page the header follows.
Can anybody suggest a way I can send keys to this field?