Hi All,

I am trying to automate some UI pages with selenium. I am getting version
compatibility issues with Firefox browser and need to figure out working
version combination. Did a bit of search on internet and couldnt find the
exact compatibility matrix.
I am not seeing this kind of issue with the chrome browser, so currently
continuing my work on that.

So appreciate any help on this.



With Firefox Version 51.0.1  Selenium version 3.8.1
geckodriver-v0.19.1-linux64

Getting Below Error :

1516684299189   geckodriver     INFO    geckodriver 0.19.1
1516684299195   geckodriver     INFO    Listening on 127.0.0.1:14046
Tests run: 3, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 0.773 sec
<<< FAILURE!
init(com.wso2.finance.intergration.tests.testcases.ui.StoreUITestCase)
Time elapsed: 0.696 sec  <<< FAILURE!
org.openqa.selenium.SessionNotCreatedException: Unable to find a matching
set of capabilities
Build info: version: '3.8.1', revision: '6e95a6684b', time:
'2017-12-01T18:33:54.468Z'
System info: host: 'asankav-ThinkPad-T540p', ip: '127.0.0.1', os.name:
'Linux', os.arch: 'amd64', os.version: '4.4.0-62-generic', java.version:
'1.8.0_45'
Driver info: driver.version: FirefoxDriver
remote stacktrace: stack backtrace:
   0:           0x4edb3c - backtrace::backtrace::trace::hc4bd56a2f176de7e
   1:           0x4edb72 -
backtrace::capture::Backtrace::new::he3b2a15d39027c46
   2:           0x4409a1 -
webdriver::error::WebDriverError::new::h81babdd86c977032
   3:           0x441ab6 -
geckodriver::marionette::MarionetteHandler::create_connection::hf0532ddb9e159684
   4:           0x428570 - <webdriver::server::Dispatcher<T,
U>>::run::h2119c674d7b88193
   5:           0x4029b9 -
std::sys_common::backtrace::__rust_begin_short_backtrace::h21d98a9ff86d4c25
   6:           0x40be65 - std::panicking::try::do_call::h5cff0c9b18cfdbba
   7:           0x5e6a6c - panic_unwind::__rust_maybe_catch_panic
                        at /checkout/src/libpanic_unwind/lib.rs:99
   8:           0x41eb22 - <F as
alloc::boxed::FnBox<A>>::call_box::h413eb1d9d9f1c473
   9:           0x5df13b - alloc::boxed::{{impl}}::call_once<(),()>
                        at /checkout/src/liballoc/boxed.rs:692
                         - std::sys_common::thread::start_thread
                        at /checkout/src/libstd/sys_common/thread.rs:21
                         -
std::sys::imp::thread::{{impl}}::new::thread_start
                        at /checkout/src/libstd/sys/unix/thread.rs:84
        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:422)
        at
org.openqa.selenium.remote.W3CHandshakeResponse.lambda$new$0(W3CHandshakeResponse.java:57)
        at
org.openqa.selenium.remote.W3CHandshakeResponse$$Lambda$120/1906879951.apply(Unknown
Source)
        at
org.openqa.selenium.remote.W3CHandshakeResponse.lambda$getResponseFunction$2(W3CHandshakeResponse.java:104)
        at
org.openqa.selenium.remote.W3CHandshakeResponse$$Lambda$122/137225802.apply(Unknown
Source)
        at
org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:123)
        at
org.openqa.selenium.remote.ProtocolHandshake$$Lambda$123/1374066265.apply(Unknown
Source)
        at
java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
        at
java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
        at
java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
        at
java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:529)
        at
java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:516)
        at
java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)
        at
java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
        at
java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at
java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
        at
org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126)
        at
org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:73)
        at
org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
        at
org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
        at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
        at
org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:219)
        at
org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:142)
        at
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120)
        at
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:98)




With Firefox Version 51.0.1  Selenium version 3.0.1
geckodriver-v0.11.1-linux64

Getting Below Error:

1516684747075   geckodriver     INFO    Listening on 127.0.0.1:23008
Jan 23, 2018 10:49:07 AM org.openqa.selenium.remote.ProtocolHandshake
createSession
INFO: Attempting bi-dialect session, assuming Postel's Law holds true on
the remote end
1516684747304   geckodriver::marionette INFO    Starting browser
/usr/lib/firefox/firefox.sh with args ["-marionette"]

(firefox:1860): GLib-GObject-CRITICAL **: g_object_ref: assertion
'object->ref_count > 0' failed

(firefox:1860): GLib-GObject-CRITICAL **: g_object_unref: assertion
'object->ref_count > 0' failed

(firefox:1860): GLib-GObject-CRITICAL **: g_object_ref: assertion
'object->ref_count > 0' failed

(firefox:1860): GLib-GObject-CRITICAL **: g_object_unref: assertion
'object->ref_count > 0' failed
1516684748848   Marionette      INFO    Listening on port 45886

(/usr/lib/firefox/plugin-container:1946): GLib-GObject-CRITICAL **:
g_object_ref: assertion 'object->ref_count > 0' failed

(/usr/lib/firefox/plugin-container:1946): GLib-GObject-CRITICAL **:
g_object_unref: assertion 'object->ref_count > 0' failed

(/usr/lib/firefox/plugin-container:1946): GLib-GObject-CRITICAL **:
g_object_ref: assertion 'object->ref_count > 0' failed

(/usr/lib/firefox/plugin-container:1946): GLib-GObject-CRITICAL **:
g_object_unref: assertion 'object->ref_count > 0' failed
Jan 23, 2018 10:49:11 AM org.openqa.selenium.remote.ProtocolHandshake
createSession
INFO: Falling back to original OSS JSON Wire Protocol.
Jan 23, 2018 10:49:11 AM org.openqa.selenium.remote.ProtocolHandshake
createSession
INFO: Falling back to straight W3C remote end connection
Tests run: 3, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 4.871 sec
<<< FAILURE!
init(com.wso2.finance.intergration.tests.testcases.ui.StoreUITestCase)
Time elapsed: 4.809 sec  <<< FAILURE!
org.openqa.selenium.SessionNotCreatedException: Unable to create new remote
session. desired capabilities = Capabilities [{marionette=true,
firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@7a52f2a2,
browserName=firefox,
moz:firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@7a52f2a2,
version=, platform=ANY}], required capabilities = Capabilities [{}]
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18
09:49:13 -0700'
System info: host: 'asankav-ThinkPad-T540p', ip: '127.0.0.1', os.name:
'Linux', os.arch: 'amd64', os.version: '4.4.0-62-generic', java.version:
'1.8.0_45'
Driver info: driver.version: FirefoxDriver
        at
org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:91)
        at
org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
        at
org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
        at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
        at
org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:241)
        at
org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:128)
        at
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:259)
        at
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:247)
        at
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:242)
        at
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:238)
        at
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:127)


-- 
Asanka Vithanage
Associate Technical Lead -QA
Mobile: +94 0716286708
Email: [email protected]
WSO2 Inc. www.wso2.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to