

The web browser Mozilla Firefox uses an engine named the Gecko browser engine. 1ĭriver.find_element_by_id( "nav-search").send_keys( "Selenium") Open a webage with the get page and optionally send keypresses. First import the webdriver, then make it start firefox. Take a look at the selenium firefox code.

The geckodriver driver will start the real firefox browser and supports Javascript.įrom python you can load the Firefox browser with one line of code: 1 To make Firefox work with Python selenium, you need to install the geckodriver. Selenium Web Automation Course & Examples.The code can then do anything you can do with a web browser, like opening a page, sending key presses or button clicks. The Python code starts the web browser and then completely controls it. To do this you need the selenium module and a web driver.
