Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Unable to use Applitools with Edge browser #56

Open
NikitaSmall opened this issue May 10, 2017 · 0 comments
Open

Unable to use Applitools with Edge browser #56

NikitaSmall opened this issue May 10, 2017 · 0 comments

Comments

@NikitaSmall
Copy link

Hello!
When I try to use applitools check window method I get following error:

Selenium::WebDriver::Error::UnknownError:
       org.openqa.selenium.edge.EdgeDriver cannot be cast to org.openqa.selenium.Rotatable (java.lang.ClassCastException)
     # [remote server] org.openqa.selenium.remote.server.handler.GetScreenOrientation(GetScreenOrientation.java):32:in `call'
     # [remote server] org.openqa.selenium.remote.server.handler.GetScreenOrientation(GetScreenOrientation.java):1:in `call'
     # [remote server] java.util.concurrent.FutureTask():-1:in `run'
     # [remote server] org.openqa.selenium.remote.server.DefaultSession$1(DefaultSession.java):176:in `run'
     # [remote server] java.util.concurrent.ThreadPoolExecutor():-1:in `runWorker'
     # [remote server] java.util.concurrent.ThreadPoolExecutor$Worker():-1:in `run'
     # [remote server] java.lang.Thread():-1:in `run'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/selenium-webdriver-3.4.0/lib/selenium/webdriver/remote/response.rb:69:in `assert_ok'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/selenium-webdriver-3.4.0/lib/selenium/webdriver/remote/response.rb:32:in `initialize'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/selenium-webdriver-3.4.0/lib/selenium/webdriver/remote/http/common.rb:83:in `new'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/selenium-webdriver-3.4.0/lib/selenium/webdriver/remote/http/common.rb:83:in `create_response'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/selenium-webdriver-3.4.0/lib/selenium/webdriver/remote/http/default.rb:107:in `request'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/selenium-webdriver-3.4.0/lib/selenium/webdriver/remote/http/common.rb:61:in `call'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/selenium-webdriver-3.4.0/lib/selenium/webdriver/remote/bridge.rb:678:in `raw_execute'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/selenium-webdriver-3.4.0/lib/selenium/webdriver/remote/bridge.rb:656:in `execute'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/selenium-webdriver-3.4.0/lib/selenium/webdriver/remote/bridge.rb:521:in `screen_orientation'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/selenium-webdriver-3.4.0/lib/selenium/webdriver/common/driver_extensions/rotatable.rb:56:in `orientation'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/eyes_selenium-2.39.1/lib/applitools/selenium/driver.rb:59:in `landscape_orientation?'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/eyes_selenium-2.39.1/lib/applitools/selenium/driver.rb:198:in `normalize_rotation'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/eyes_selenium-2.39.1/lib/applitools/selenium/driver.rb:177:in `normalize_image'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/eyes_selenium-2.39.1/lib/applitools/selenium/driver.rb:95:in `get_screenshot'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/eyes_selenium-2.39.1/lib/applitools/selenium/match_window_task.rb:106:in `prep_match_data'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/eyes_selenium-2.39.1/lib/applitools/selenium/match_window_task.rb:191:in `match'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/eyes_selenium-2.39.1/lib/applitools/selenium/match_window_task.rb:69:in `run_with_intervals'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/eyes_selenium-2.39.1/lib/applitools/selenium/match_window_task.rb:34:in `match_window'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/ui_automation-0.4.5/lib/ui_automation/reports/applitools_screenshot.rb:28:in `check_region_'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/eyes_selenium-2.39.1/lib/applitools/eyes.rb:243:in `check_window'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/ui_automation-0.4.5/lib/ui_automation/reports/applitools_screenshot.rb:10:in `check_window'
     # ./oneapp/web/specs/activate_smoke_spec.rb:38:in `block (3 levels) in <top (required)>'
     # /Users/nikitasmall/.rvm/gems/ruby-2.3.3@tests/gems/ui_automation-0.4.5/lib/ui_automation/runner.rb:7:in `run'

It looks like we cannot properly determinate a driver (and count it as rotatable, e.g. mobile), but I could be mistaken.

The same, basically, error I get when try to work with new Firefox browsers (> 47.0):
Selenium::WebDriver::Error::UnknownError: org.openqa.selenium.firefox.MarionetteDriver cannot be cast to org.openqa.selenium.Rotatable (java.lang.ClassCastException)

But downgrade to 47.0 works fine.

Is there any clue to resolve this from my side?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant