Jenkins ver. 1.642.4
Launching from localhost:8080
Java jdk1.8.0_40
The website page I'm testing using Selenium WebDriver has an <input type='file'... tag, that is initially hidden (due to some UI requirements). I make it visible, and then use WebElement sendKeys(file-path) method to initiate file upload. Works fine in Eclipse, but fails in Jenkins with Element is not currently visible and so may not be interacted with message. Here's the element in question:
<input style="display: block;height:20px;width:30px" name="fileToUpload" id="fileToUpload" data-bind-id="sharemsg-fileupload-input" title="Choose File" multiple="multiple" type="file">
I also print isDisplayed() element property, and in Eclipse it is true, in Jenkins false. That's the difference, but why?
Thanks
Viktor