File tree Expand file tree Collapse file tree
rb/lib/selenium/webdriver/remote Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,14 +31,6 @@ class Driver < WebDriver::Driver
3131 include DriverExtensions ::HasSessionId
3232
3333 def initialize ( bridge : nil , listener : nil , **opts )
34- desired_capabilities = opts [ :desired_capabilities ]
35- if desired_capabilities . is_a? ( Symbol )
36- unless Remote ::Capabilities . respond_to? ( desired_capabilities )
37- raise Error ::WebDriverError , "invalid desired capability: #{ desired_capabilities . inspect } "
38- end
39-
40- opts [ :desired_capabilities ] = Remote ::Capabilities . __send__ ( desired_capabilities )
41- end
4234 opts [ :url ] ||= "http://#{ Platform . localhost } :4444/wd/hub"
4335 super
4436 @bridge . file_detector = -> ( ( filename , *) ) { File . exist? ( filename ) && filename . to_s }
You can’t perform that action at this time.
0 commit comments