selenium - Configure Capybara to use Marionette WebDriver for Firefox -


with marionette replacing firefoxdriver, need configure tests run it. i've downloaded binary can't seem capybara driver registration configured use marionette.

capybara.register_driver :selenium_firefox |app|   capabilities = selenium::webdriver::remote::capabilities.firefox   capabilities["firefox_binary"] = 'path/to/marionette/renamed/to/wires'   capybara::selenium::driver.new(app, browser: :firefox, desired_capabilities: capabilities) end 

when start test though, initial page of ff trying run without marionette.

marionette passed option driver.new - not desired_capabilities

capybara.register_driver :selenium_firefox |app|   capybara::selenium::driver.new(app, browser: :firefox, marionette: true) end 

it requires have downloaded geckodriver, put in path , renamed wires

a complete description of these configuration steps, including marionette latest executables download links can found here.

note: capybara not yet support marionette, things being fixed in capybara, bugs in selenium-webdriver, , others general flakiness of - things stops selecting options select elements - no errors thrown, stops working. don't think ready real world use yet.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -