Guard remote session ID test
@@ -33,8 +33,6 @@ module Selenium
expect(caps.implicit_timeout).to be_zero
expect(caps.page_load_timeout).to be == 300000
expect(caps.script_timeout).to be == 30000
-
- expect(caps.remote_session_id).not_to be_nil if GlobalTestEnv.driver == :remote
end
end
@@ -54,6 +52,12 @@ module Selenium
end
end
+ it 'has remote session ID', only: {driver: :remote}, except: {browser: :ff_esr} do
+ create_driver! do |driver|
+ expect(driver.capabilities.remote_session_id).to be
+ end
+ end
+
it 'takes a binary path as an argument', only: {driver: :firefox} do
skip "Set ENV['ALT_FIREFOX_BINARY'] to test this" unless ENV['ALT_FIREFOX_BINARY']
