-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 81ba2f7
Showing
10 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Project exclude paths | ||
/venv/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# My Python Selenium Demo on Google page | ||
|
||
## Step 1: Ensure correct dependencies are installed | ||
|
||
See the attached *requirements.txt* | ||
|
||
Quickly check if you can navigate to Google by scripting some navigational code. See *test_search.py* | ||
|
||
### NOTES | ||
If you're facing ChromeDriver issues, use the [DriverManager library](https://stackoverflow.com/questions/60806988/selenium-error-this-version-of-chromedriver-only-supports-chrome-version-81-m) so it automatically installs the latest driver. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from selenium import webdriver | ||
from webdriver_manager.chrome import ChromeDriverManager | ||
import time | ||
|
||
# webdriver manager installs | ||
driver = webdriver.Chrome(ChromeDriverManager().install()) | ||
|
||
driver.implicitly_wait(10) | ||
driver.maximize_window() | ||
|
||
driver.get("https://www.google.com/") | ||
|
||
driver.find_element_by_name("q").send_keys("Google") | ||
|
||
driver.find_element_by_name("btnK").click() | ||
|
||
time.sleep(2) | ||
|
||
driver.close() | ||
driver.quit() | ||
|
||
print("Test Completed") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
certifi==2020.4.5.1 | ||
chardet==3.0.4 | ||
colorama==0.4.3 | ||
configparser==5.0.0 | ||
crayons==0.3.0 | ||
html-testRunner==1.2.1 | ||
idna==2.9 | ||
Jinja2==2.11.2 | ||
MarkupSafe==1.1.1 | ||
requests==2.23.0 | ||
selenium==3.141.0 | ||
urllib3==1.25.9 | ||
webdriver-manager==2.5.2 |