Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 2.21 KB

README.md

File metadata and controls

39 lines (32 loc) · 2.21 KB

Automation-using-selenium

Build Status

This reposirtory contains three python notebooks for web automation using selenium.

  1. Whatsapp automation generator
  • selenium is imported , adn so is webdriver and keys
  • firefox browser is opened using webdriver instance
  • the driver object gets the website of whatsapp
  • the xpath of search bar is then passed
  • the required name is sent using send_keys() function
  • then entered key is presses for the required name by using u'\ue007 in send_keys()
  • the message instance is then created using the message box of the chat
  • finally message is entered and looped over for a fixed number of times to send the message
  1. Google search using selenium
  • imported webdriver and https://www.google.com site is passed to it
  • the site then opens up in firefox
  • the xpath of search bar is passed , the message is sent using send_keys() function and enter key is pressed with u'\ue007
  1. google for filling using selenium :

Finally the responses are recoreded from the bot :

  1. facebook autologin:
- type the facebok username and password in the variables username and password
- the webdriver gets ther xpath of username and password text boxes , it send the text tot those
- the webdriver then clicks on login by getting the xpath
  1. Stackoverflow search : - type in the message to the message variable in stack_overflow_search.py and run the python file to get desired search results of message from stackoverflow.