Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated calls to selenium.webdriver.find_element_by_id #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions audible-activator.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import requests
from getpass import getpass
from selenium import webdriver
from selenium.webdriver.common.by import By
from optparse import OptionParser

PY3 = sys.version_info[0] == 3
Expand Down Expand Up @@ -99,9 +100,9 @@ def fetch_activation_bytes(username, password, options):
print("[!] Running in DEBUG mode. You will need to login in a semi-automatic way, wait for the login screen to show up ;)")
time.sleep(32)
else:
search_box = driver.find_element_by_id('ap_email')
search_box = driver.find_element(By.ID, 'ap_email')
search_box.send_keys(username)
search_box = driver.find_element_by_id('ap_password')
search_box = driver.find_element(By.ID, 'ap_password')
search_box.send_keys(password)
search_box.submit()
time.sleep(2) # give the page some time to load
Expand Down