audible-activator icon indicating copy to clipboard operation
audible-activator copied to clipboard

Updated calls to selenium.webdriver.find_element_by_id

Open Charl-X opened this issue 2 years ago • 3 comments

Running the original audible-activator.py script with the Firefox web driver results in the error:

Traceback (most recent call last): File "audible-activator.py", line 202, in fetch_activation_bytes(username, password, options) File "audible-activator.py", line 102, in fetch_activation_bytes search_box = driver.find_element_by_id('ap_email') AttributeError: 'WebDriver' object has no attribute 'find_element_by_id'

I updated these calls to have the intended functionality by importing By from selenium.webdriver.common.by:

search_box = driver.find_element(By.ID, 'ap_email')

Charl-X avatar Sep 08 '22 03:09 Charl-X

Running audible-activator.py with the latest chromedriver at the time of installation through brew yields the same error and is fixed by the same fix.

$ chromedriver -v ChromeDriver 106.0.5249.61 (511755355844955cd3e264779baf0dd38212a4d0-refs/branch-heads/5249@{#569})

ProfessorLogout avatar Oct 24 '22 12:10 ProfessorLogout

please merge this.

And also... please freeze dependencies version in requirements.txt to avoid such situations in the future.

noisy avatar Jan 30 '23 23:01 noisy

I was about to make the same PR ... Thanks @inAudible-NG for your work, really appreciated

delcroip avatar Apr 10 '23 19:04 delcroip