How to set a firefox profile on a Selenium WebDriver remote with Ruby -


i want set firefox profile following driver:

driver = selenium::webdriver.for :remote, :url => "http://localhost:4444/wd/hub", :desired_capabilities => :firefox 

i've tried adding:

profile = selenium::webdriver::firefox::profile.new profile['browser.download.downloaddir'] = '/home/seluser' driver = selenium::webdriver.for :remote, :url => "http://localhost:4444/wd/hub", :desired_capabilities => :firefox, :profile => profile 

but profile option not exist

thanks

you should try below :-

profile = selenium::webdriver::firefox::profile.new profile['browser.download.downloaddir'] = '/home/seluser'  capabilities = selenium::webdriver::remote::capabilities.firefox(:firefox_profile => profile)  driver = selenium::webdriver.for :remote, :url => "http://localhost:4444/wd/hub", :desired_capabilities => capabilities 

note :- should follow this learn more ruby binding.

hope you...:)


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -