-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_case.txt
More file actions
23 lines (23 loc) · 910 Bytes
/
test_case.txt
File metadata and controls
23 lines (23 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# open the url
driver.get('https://www.amazon.com/')
#Amazon logo
driver.find_element(By.CSS_SELECTOR, "i.a-icon-logo")
#Create account text
driver.find_element(By.CSS_SELECTOR, "h1.a-spacing-small")
# Your name section
driver.find_element(By.CSS_SELECTOR, "#ap_customer_name")
#Email section
driver.find_element(By.CSS_SELECTOR, "input#ap_email")
#Password
driver.find_element(By.CSS_SELECTOR, "#ap_password")
#FYI I don't have "Forgot your password link and Other issue with Sign-in link"
#Re-enter password
driver.find_element(By.CSS_SELECTOR, "#ap_password_check")
#Continue button
driver.find_element(By.CSS_SELECTOR, "[type=submit]")
#Conditions of Use
driver.find_element(By.CSS_SELECTOR, "a[href*=ap_register_notification_condition_of_use]")
#Policy
driver.find_element(By.CSS_SELECTOR,"a[href*=ap_register_notification_privacy_notice]")
#Sing in
driver.find_element(By.CSS_SELECTOR,".a-link-emphasis")