user1808286
user1808286

Reputation: 55

How to integrate Selenium and Python

I wanted to run selenium code in using python so, How to integrate with python

Upvotes: 1

Views: 385

Answers (1)

Marwan Alsabbagh
Marwan Alsabbagh

Reputation: 26788

you can install it using pip:

pip install selenium

the documentation has a nice Getting Started section with some good examples. The example I created below is a very simple one that will load a url and print the page's title. You could use it to just check that everything is up and running.

from selenium import webdriver
driver = webdriver.Firefox()
driver.get("http://google.com")
print driver.title
driver.close()

Upvotes: 4

Related Questions