fb_pixel

How to add DesiredCapabilities.firefox() in python / selenium project

Development | Programming languages
Description
Hello, how to add "DesiredCapabilities.firefox()" to my python / code..? 

Send the code via PM.
Attachments
No attachments
Info
Description

Add module

from selenium.webdriver.common.desired_capabilities import DesiredCapabilities

and replace existing driver options (for example)
options = webdriver.FirefoxOptions()
options.add_argument('-headless')
cap = DesiredCapabilities().FIREFOX
browser = webdriver.Firefox(capabilities=cap, executable_path=geckodriver, options=options)


on September 24th, 2019 (7:45 pm)
All coments
This job has not been commented yet.