My Brain Cells

Easiest (and best) learning materials for anyone with a curiosity for machine learning and artificial intelligence, Deep learning, Programming, and other fun life hacks.

web automation with selenium

  • Install selenium in your pc
  • Download web drivers: https://chromedriver.storage.googleapis.com/index.html?path=83.0.4103.39/
  • Install any code editors (my recommendation is pycharm for all python projects)
  • Then write this code in the editor:- 
    • From selenium import webdriver

    • From selenium.webdriver.common.keys import Keys
    • From selenium.actionkeys import ActionKeys
    • Browser = webdriver.Chrome(“path of web driver”)
    • Browser.get(‘url’)
    • So on…..

  •  Now to click, move mouse, scroll , type etc use the selenium libraries like .click(XPath), .sentkeys(XPath) ( https://www.selenium.dev/documentation/en/ )

Anthony

One thought on “web automation with selenium

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top