Recent Posts

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/ )

No comments

If you have any doubts, Please let me know