openequella / openEQUELLA-autotests

2 stars 1 forks source link

FileAttachmentControlTest -> sameFile fails only when using Geckodriver #10

Open SammyIsConfused opened 5 years ago

SammyIsConfused commented 5 years ago

Describe the bug FileAttachmentControlTest - sameFile test fails out when using geckodriver and FireFox, due to a sendKeys call when inputting a filepath to an uploader input element.

To Reproduce

  1. Set up the autotest suite to use geckodriver for FireFox testing.
  2. Run FileAttachmentControlTest - sameFile test.
  3. Observe that sameFile fails.
  4. Set up the autotest suite to use chromedriver for Chrome testing.
  5. Run FileAttachmentControlTest - sameFile test again.
  6. Observe that sameFile passes.

Expected behavior Both tests should be consistent with each other, either both failing or both passing.

Screenshots image

Stack Trace

org.openqa.selenium.ElementNotInteractableException: Element <input id="myr_fm_file" type="file"> is not reachable by keyboard
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'Sammy-Dell', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-43-generic', java.version: '1.8.0_191'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 64.0, javascriptEnabled: true, moz:accessibilityChecks: false, moz:geckodriverVersion: 0.23.0, moz:headless: false, moz:processID: 12770, moz:profile: /tmp/rust_mozprofile.esC8Vw..., moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, platformVersion: 4.15.0-43-generic, rotatable: false, setWindowRect: true, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
Session ID: 50949127-a73f-4a38-a455-37c027afa97c
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
    at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
    at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
    at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:285)
    at org.openqa.selenium.remote.RemoteWebElement.sendKeys(RemoteWebElement.java:106)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.tle.webtests.framework.factory.RefreshingElementHandler$1.apply(RefreshingElementHandler.java:65)
...

Platform:

edalex-ian commented 5 years ago

Can we close this one now @SammyIsConfused

SammyIsConfused commented 5 years ago

@doolse did you ever end up testing this? If not, is there any chance you'd be able to?

doolse commented 5 years ago

@SammyIsConfused Not sure if i did on Friday, will do it now :+1: