Thursday, 29 June 2017

First selenium programme with python

prerequisites:

1.python software
2.install selenium over python
3.download chrome driver
4.IDE for python code: pycharm


FacebookTest.py

from selenium import webdriver
driver = webdriver.Chrome("C:/forSelenium/chromedriver.exe")
driver.get("http://www.facebook.com")

No comments:

Post a Comment