From a48dc1af99ef1f10341d4139bd7842862ab7eaa2 Mon Sep 17 00:00:00 2001 From: optimist2309 Date: Sat, 23 Jul 2022 16:21:49 +0530 Subject: [PATCH 1/2] Typo updates --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 267efde..e0fb213 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ This repository is for all Python enthusiasts who have a keen interest in automa # Tools Needed -Selenim - +Selenium - Windows ``` py pip install selenium @@ -125,19 +125,20 @@ select_by_value(value) -> This selects all the options that have a value matchin select_by_visible_text(text) -> This selects all the options that display the text matching the argument from the dropdown or list. ``` -#Alert class +# Alert class Properties of the Alert class ``` text -> This gets text from the alert window ``` -#Methods of the Alert class +# Methods of the Alert class ``` accept() -> This will accept the JavaScript alert box that is click on the OK button. dismiss() -> This will dismiss the JavaScript alert box that is click on the Cancel button. send_keys(*value) -> This simulates typing into the element. ``` -#Browser Arguments -–headless +# Browser Arguments +``` +– headless To open browser in headless mode. Works in both Chrome and Firefox browser –start-maximized To start browser maximized to screen. Requires only for Chrome browser. Firefox by default starts maximized @@ -146,3 +147,4 @@ To open private chrome browser –disable-notifications To disable notifications, works Only in Chrome browser http://allselenium.info/python-selenium-commands-cheat-sheet-frequently-used/ +``` \ No newline at end of file From 1a2ae2129a46dac0fbc87311ba9b5d5c3fb5ef22 Mon Sep 17 00:00:00 2001 From: Harish Tiwari Date: Sat, 23 Jul 2022 22:47:23 +0530 Subject: [PATCH 2/2] Update README.md --- README.md | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index e0fb213..3dcb2b5 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Have you ever thought some college work can be automated using python? Rather th This repository is for all Python enthusiasts who have a keen interest in automating the web browser using Python commands. No previous knowledge is required. This repository will be useful for all the students who are not familiar with python as well as for those students who want to test their technical skills with hand-on-projects to solve complex and real-world problems. In this repository you will be going to learn about the new concept of how to use python commands for web automation, which is useful for testing, scraping data, getting concert tickets, filling in tedious forms using selenium. As a result, you will increase your knowledge and gain expertise in troubleshooting and debugging, python programming and version control. Moreover, this workshop is informative and fun. # Websites -[Selenium data](https://selenium-python.readthedocs.io) +[Selenium Docs](https://selenium-python.readthedocs.io) # Tools Needed @@ -37,16 +37,18 @@ sudo pip3 install selenium ``` # Web Driver Install -[Web Driver](https://www.selenium.dev/documentation/webdriver/getting_started/install_drivers/) -[brew link](https://formulae.brew.sh/cask/chromedriver) - -Browser based setup -Firefox: firefoxdriver = webdriver.Firefox(executable_path=”Path to Firefox driver”)
-Chrome:``` chromedriver = webdriver.Chrome(executable_path=”Path to Chrome driver”) ```
-Internet Explorer: ```iedriver = webdriver.IE(executable_path=”­Pat­h To­ IEDriverServer.exe”) ```
-Edge: ```edgedriver = webdriver.Edge(executable_path=”­Pat­h To­ MicrosoftWebDriver.exe”)```__ -Opera: ```operadriver = webdriver.Opera(executable_path=”­Pat­h To­ operadriver”)```__ +[Web Driver](https://www.selenium.dev/documentation/webdriver/getting_started/install_drivers/)
+[Brew link](https://formulae.brew.sh/cask/chromedriver) + +# Browser based setup +``` +Firefox: firefoxdriver = webdriver.Firefox(executable_path=”Path to Firefox driver”) +Chrome: chromedriver = webdriver.Chrome(executable_path=”Path to Chrome driver”) +Internet Explorer: iedriver = webdriver.IE(executable_path=”­Pat­h To­ IEDriverServer.exe”) +Edge: edgedriver = webdriver.Edge(executable_path=”­Pat­h To­ MicrosoftWebDriver.exe”) +Opera: operadriver = webdriver.Opera(executable_path=”­Pat­h To­ operadriver”) Safari: SafariDriver now requires manual installation of the extension prior to automation +``` # Properties of WebDriver class ``` @@ -147,4 +149,4 @@ To open private chrome browser –disable-notifications To disable notifications, works Only in Chrome browser http://allselenium.info/python-selenium-commands-cheat-sheet-frequently-used/ -``` \ No newline at end of file +```