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
Post a Comment