From c3aedfee05802f999298bd7fc400c993db4b4735 Mon Sep 17 00:00:00 2001 From: Jenish J <9320926+jenishngl@users.noreply.github.com> Date: Wed, 6 Jul 2022 21:28:13 +0530 Subject: [PATCH] FIXING - AttributeError: 'WebDriver' object has no attribute 'find_element_by_id' Updated find_element_by_id to find_element since find_element_by_id is no longer available --- audible-activator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audible-activator.py b/audible-activator.py index 4443f37..0d90462 100755 --- a/audible-activator.py +++ b/audible-activator.py @@ -99,9 +99,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('id','ap_email') search_box.send_keys(username) - search_box = driver.find_element_by_id('ap_password') + search_box = driver.find_element('id','ap_password') search_box.send_keys(password) search_box.submit() time.sleep(2) # give the page some time to load