Update main.py
asdfqw2f
This commit is contained in:
47
main.py
47
main.py
@@ -1010,7 +1010,6 @@ class ea_fucking():
|
|||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
#import pdb;pdb.set_trace()
|
|
||||||
sleep(6)
|
sleep(6)
|
||||||
pyautogui.press('tab')#,
|
pyautogui.press('tab')#,
|
||||||
sleep(1)
|
sleep(1)
|
||||||
@@ -1327,7 +1326,7 @@ class ea_fucking():
|
|||||||
codex.end()
|
codex.end()
|
||||||
codex=Gmail(value,val2,browser_proxy=browser_proxy)
|
codex=Gmail(value,val2,browser_proxy=browser_proxy)
|
||||||
print('eror')
|
print('eror')
|
||||||
#import pdb;pdb.set_trace()
|
#
|
||||||
print('break_one')
|
print('break_one')
|
||||||
if codes==True:
|
if codes==True:
|
||||||
pass
|
pass
|
||||||
@@ -1573,7 +1572,7 @@ class ea_fucking():
|
|||||||
codex.end()
|
codex.end()
|
||||||
codex=Gmail(value,val2,browser_proxy=browser_proxy)
|
codex=Gmail(value,val2,browser_proxy=browser_proxy)
|
||||||
print('eror')
|
print('eror')
|
||||||
#import pdb;pdb.set_trace()
|
#
|
||||||
|
|
||||||
if codes==True:
|
if codes==True:
|
||||||
pass
|
pass
|
||||||
@@ -1831,7 +1830,7 @@ class ea_fucking():
|
|||||||
tot=self.qr_code()
|
tot=self.qr_code()
|
||||||
sleep(3)
|
sleep(3)
|
||||||
totx=self.top(tot)
|
totx=self.top(tot)
|
||||||
#import pdb;pdb.set_trace()
|
#
|
||||||
# ea_png/input_bouten1.PNG ea_png/input_bouten2.PNG ea_png/input_for_end.PNG
|
# ea_png/input_bouten1.PNG ea_png/input_bouten2.PNG ea_png/input_for_end.PNG
|
||||||
if chek5==True:
|
if chek5==True:
|
||||||
pass
|
pass
|
||||||
@@ -2176,7 +2175,7 @@ class Gmail:
|
|||||||
self.driver.save_screenshot(os.path.join(os.getcwd(),'picher',f"_{self.name}verify.png"))
|
self.driver.save_screenshot(os.path.join(os.getcwd(),'picher',f"_{self.name}verify.png"))
|
||||||
return 'robot'
|
return 'robot'
|
||||||
'''
|
'''
|
||||||
# import pdb;pdb.set_trace()
|
#
|
||||||
xxn=self.driver.find_elements(By.XPATH, "//*[contains(text(), 'Confirm your recovery email')]")
|
xxn=self.driver.find_elements(By.XPATH, "//*[contains(text(), 'Confirm your recovery email')]")
|
||||||
try:
|
try:
|
||||||
xxn.click()
|
xxn.click()
|
||||||
@@ -2327,7 +2326,7 @@ class Gmail:
|
|||||||
return code
|
return code
|
||||||
|
|
||||||
print(elements)
|
print(elements)
|
||||||
#import pdb;pdb.set_trace()
|
#
|
||||||
for i in elements:
|
for i in elements:
|
||||||
print(i.text)
|
print(i.text)
|
||||||
data=i.text.replace('Your EA Security Code is: ', '')
|
data=i.text.replace('Your EA Security Code is: ', '')
|
||||||
@@ -2438,7 +2437,7 @@ class Gmail:
|
|||||||
|
|
||||||
self.driver.get("https://mail.google.com/mail/u/0/#settings/general")
|
self.driver.get("https://mail.google.com/mail/u/0/#settings/general")
|
||||||
sleep(10)
|
sleep(10)
|
||||||
#import pdb;pdb.set_trace()
|
#
|
||||||
#iframes = self.driver.find_elements(By.TAG_NAME, "iframe")
|
#iframes = self.driver.find_elements(By.TAG_NAME, "iframe")
|
||||||
xx=self.driver.find_element(By.XPATH, "//select")
|
xx=self.driver.find_element(By.XPATH, "//select")
|
||||||
sleep(5)
|
sleep(5)
|
||||||
@@ -2448,7 +2447,7 @@ class Gmail:
|
|||||||
xx=self.driver.find_element(By.XPATH, "//td/div/button").click()
|
xx=self.driver.find_element(By.XPATH, "//td/div/button").click()
|
||||||
sleep(3)
|
sleep(3)
|
||||||
self.driver.get("https://myaccount.google.com/language")
|
self.driver.get("https://myaccount.google.com/language")
|
||||||
#import pdb;pdb.set_trace()
|
#
|
||||||
#https://myaccount.google.com/language
|
#https://myaccount.google.com/language
|
||||||
xd=''
|
xd=''
|
||||||
for i in range(8):
|
for i in range(8):
|
||||||
@@ -2606,7 +2605,7 @@ def main(path_png_file,
|
|||||||
return 'ALERT_to_mnay_code_chek'
|
return 'ALERT_to_mnay_code_chek'
|
||||||
|
|
||||||
print('----------//////////',get_turn_on_2)
|
print('----------//////////',get_turn_on_2)
|
||||||
#import pdb;pdb.set_trace()
|
#
|
||||||
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
||||||
return "ea_created__app_code_nead!!"
|
return "ea_created__app_code_nead!!"
|
||||||
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
||||||
@@ -2632,7 +2631,7 @@ def main(path_png_file,
|
|||||||
print('handel_page_and_code Failed!')
|
print('handel_page_and_code Failed!')
|
||||||
return 'handel_page_and_code Failed'
|
return 'handel_page_and_code Failed'
|
||||||
###########################################^^^^
|
###########################################^^^^
|
||||||
#import pdb;pdb.set_trace()
|
#
|
||||||
return handel_page_and_code
|
return handel_page_and_code
|
||||||
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
|
|
||||||
@@ -2651,7 +2650,7 @@ def main(path_png_file,
|
|||||||
if not contuen_page2:
|
if not contuen_page2:
|
||||||
print('contuen_page2 Failed!')
|
print('contuen_page2 Failed!')
|
||||||
return 'contuen_page2 Failed'
|
return 'contuen_page2 Failed'
|
||||||
# import pdb;pdb.set_trace()
|
#
|
||||||
# Accept buttons
|
# Accept buttons
|
||||||
next = ea.next()
|
next = ea.next()
|
||||||
if isinstance(next, str):return next
|
if isinstance(next, str):return next
|
||||||
@@ -2665,7 +2664,7 @@ def main(path_png_file,
|
|||||||
|
|
||||||
print('accept >>>', accept)
|
print('accept >>>', accept)
|
||||||
if 'make_other_time'==accept:
|
if 'make_other_time'==accept:
|
||||||
#import pdb;pdb.set_trace()
|
#
|
||||||
#return 'make_other_time'
|
#return 'make_other_time'
|
||||||
sleep(10)
|
sleep(10)
|
||||||
get_seting_sec_1 = ea.get_seting_sec_1()
|
get_seting_sec_1 = ea.get_seting_sec_1()
|
||||||
@@ -2679,7 +2678,7 @@ def main(path_png_file,
|
|||||||
if 'ALERT_to_mnay_code_chek' in str(get_turn_on_2):
|
if 'ALERT_to_mnay_code_chek' in str(get_turn_on_2):
|
||||||
return 'ALERT_to_mnay_code_chek'
|
return 'ALERT_to_mnay_code_chek'
|
||||||
print('----------//////////',get_turn_on_2)
|
print('----------//////////',get_turn_on_2)
|
||||||
#import pdb;pdb.set_trace()
|
#
|
||||||
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
||||||
return "ea_created__app_code_nead!!"
|
return "ea_created__app_code_nead!!"
|
||||||
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
||||||
@@ -2704,7 +2703,7 @@ def main(path_png_file,
|
|||||||
print('handel_page_and_code Failed!')
|
print('handel_page_and_code Failed!')
|
||||||
return 'handel_page_and_code Failed'
|
return 'handel_page_and_code Failed'
|
||||||
###########################################^^^^
|
###########################################^^^^
|
||||||
#import pdb;pdb.set_trace()
|
#
|
||||||
return handel_page_and_code
|
return handel_page_and_code
|
||||||
if not accept:
|
if not accept:
|
||||||
print('accept Failed!')
|
print('accept Failed!')
|
||||||
@@ -2726,7 +2725,7 @@ def main(path_png_file,
|
|||||||
get_turn_on_2 = ea.get_turn_on_2(codex,value,val2)
|
get_turn_on_2 = ea.get_turn_on_2(codex,value,val2)
|
||||||
if 'ALERT_to_mnay_code_chek' in str(get_turn_on_2):
|
if 'ALERT_to_mnay_code_chek' in str(get_turn_on_2):
|
||||||
return 'ALERT_to_mnay_code_chek'
|
return 'ALERT_to_mnay_code_chek'
|
||||||
#import pdb;pdb.set_trace()
|
#
|
||||||
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
||||||
return "ea_created__app_code_nead!!"
|
return "ea_created__app_code_nead!!"
|
||||||
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
||||||
@@ -2752,7 +2751,7 @@ def main(path_png_file,
|
|||||||
print('handel_page_and_code Failed!')
|
print('handel_page_and_code Failed!')
|
||||||
return 'handel_page_and_code Failed'
|
return 'handel_page_and_code Failed'
|
||||||
###########################################^^^^
|
###########################################^^^^
|
||||||
#import pdb;pdb.set_trace()
|
#
|
||||||
return handel_page_and_code
|
return handel_page_and_code
|
||||||
print('creat >>>', creat)
|
print('creat >>>', creat)
|
||||||
if isinstance(creat, str):return creat
|
if isinstance(creat, str):return creat
|
||||||
@@ -2778,7 +2777,7 @@ def main(path_png_file,
|
|||||||
get_turn_on_2 = ea.get_turn_on_2(codex,value,val2)
|
get_turn_on_2 = ea.get_turn_on_2(codex,value,val2)
|
||||||
if 'ALERT_to_mnay_code_chek' in str(get_turn_on_2):
|
if 'ALERT_to_mnay_code_chek' in str(get_turn_on_2):
|
||||||
return 'ALERT_to_mnay_code_chek'
|
return 'ALERT_to_mnay_code_chek'
|
||||||
# import pdb;pdb.set_trace()
|
#
|
||||||
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
||||||
return "ea_created__app_code_nead!!"
|
return "ea_created__app_code_nead!!"
|
||||||
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
||||||
@@ -2821,9 +2820,9 @@ def main(path_png_file,
|
|||||||
print('accept >>>', accept)
|
print('accept >>>', accept)
|
||||||
|
|
||||||
if 'make_other_time'==accept:
|
if 'make_other_time'==accept:
|
||||||
#import pdb;pdb.set_trace()
|
#
|
||||||
#return 'make_other_time'
|
#return 'make_other_time'
|
||||||
#import pdb;pdb.set_trace()
|
#
|
||||||
#return 'make_other_time'
|
#return 'make_other_time'
|
||||||
sleep(10)
|
sleep(10)
|
||||||
get_seting_sec_1 = ea.get_seting_sec_1()
|
get_seting_sec_1 = ea.get_seting_sec_1()
|
||||||
@@ -2837,7 +2836,7 @@ def main(path_png_file,
|
|||||||
if 'ALERT_to_mnay_code_chek' in str(get_turn_on_2):
|
if 'ALERT_to_mnay_code_chek' in str(get_turn_on_2):
|
||||||
return 'ALERT_to_mnay_code_chek'
|
return 'ALERT_to_mnay_code_chek'
|
||||||
print('----------//////////',get_turn_on_2)
|
print('----------//////////',get_turn_on_2)
|
||||||
#import pdb;pdb.set_trace()
|
#
|
||||||
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
||||||
return "ea_created__app_code_nead!!"
|
return "ea_created__app_code_nead!!"
|
||||||
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
||||||
@@ -2863,7 +2862,7 @@ def main(path_png_file,
|
|||||||
print('handel_page_and_code Failed!')
|
print('handel_page_and_code Failed!')
|
||||||
return 'handel_page_and_code Failed'
|
return 'handel_page_and_code Failed'
|
||||||
###########################################^^^^
|
###########################################^^^^
|
||||||
#import pdb;pdb.set_trace()
|
#
|
||||||
return handel_page_and_code
|
return handel_page_and_code
|
||||||
if not accept:
|
if not accept:
|
||||||
print('accept Failed!')
|
print('accept Failed!')
|
||||||
@@ -2885,7 +2884,7 @@ def main(path_png_file,
|
|||||||
get_turn_on_2 = ea.get_turn_on_2(codex,value,val2)
|
get_turn_on_2 = ea.get_turn_on_2(codex,value,val2)
|
||||||
if 'ALERT_to_mnay_code_chek' in str(get_turn_on_2):
|
if 'ALERT_to_mnay_code_chek' in str(get_turn_on_2):
|
||||||
return 'ALERT_to_mnay_code_chek'
|
return 'ALERT_to_mnay_code_chek'
|
||||||
#import pdb;pdb.set_trace()
|
#
|
||||||
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
||||||
return "ea_created__app_code_nead!!"
|
return "ea_created__app_code_nead!!"
|
||||||
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
||||||
@@ -2939,7 +2938,7 @@ def main(path_png_file,
|
|||||||
if 'ALERT_to_mnay_code_chek' in str(get_turn_on_2):
|
if 'ALERT_to_mnay_code_chek' in str(get_turn_on_2):
|
||||||
return 'ALERT_to_mnay_code_chek'
|
return 'ALERT_to_mnay_code_chek'
|
||||||
print('----------//////////',get_turn_on_2)
|
print('----------//////////',get_turn_on_2)
|
||||||
# import pdb;pdb.set_trace()
|
#
|
||||||
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
||||||
return "ea_created__app_code_nead!!"
|
return "ea_created__app_code_nead!!"
|
||||||
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
||||||
@@ -2965,7 +2964,7 @@ def main(path_png_file,
|
|||||||
print('handel_page_and_code Failed!')
|
print('handel_page_and_code Failed!')
|
||||||
return 'handel_page_and_code Failed'
|
return 'handel_page_and_code Failed'
|
||||||
###########################################^^^^
|
###########################################^^^^
|
||||||
#import pdb;pdb.set_trace()
|
|
||||||
return handel_page_and_code
|
return handel_page_and_code
|
||||||
# Open new tab
|
# Open new tab
|
||||||
######################################
|
######################################
|
||||||
|
Reference in New Issue
Block a user