mirror of
				https://github.com/inAudible-NG/audible-activator.git
				synced 2025-11-04 12:20:41 +01:00 
			
		
		
		
	Updating for Selenium 4.3.0 compatability. See more: a4995e2c09/py/CHANGES
				
					
				
			This commit is contained in:
		@@ -11,6 +11,7 @@ import requests
 | 
			
		||||
from getpass import getpass
 | 
			
		||||
from selenium import webdriver
 | 
			
		||||
from optparse import OptionParser
 | 
			
		||||
from selenium.webdriver.common.by import By
 | 
			
		||||
 | 
			
		||||
PY3 = sys.version_info[0] == 3
 | 
			
		||||
 | 
			
		||||
@@ -88,8 +89,7 @@ def fetch_activation_bytes(username, password, options):
 | 
			
		||||
            chromedriver_path = "./chromedriver"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        driver = webdriver.Chrome(options=opts,
 | 
			
		||||
                                  executable_path=chromedriver_path)
 | 
			
		||||
        driver = webdriver.Chrome(options=opts)
 | 
			
		||||
 | 
			
		||||
    query_string = urlencode(payload)
 | 
			
		||||
    url = login_url + query_string
 | 
			
		||||
@@ -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(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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user