sarankavalan
Registered Member
- Sep 12, 2015
- 53
- 9
Hey guys,
I am trying to do automation on twitter to auto create accounts.
I am done with all codings and captcha bypass. But twitter detects my automation after entering verification code and i click on next button.
Till entering email verification code. there are no issues. but clicking on next button is detected. To confirm that i actually paused the automation on this step. then i manually clicked next then it is not detected.
Tried different solutions like Simulate Mouse Movement, ActionChains, windows scrolls, Random Time Delays - But nothing works.
Twitter detects it and not letting me to navigate to next page.
My Py Code:
# Step 5: Click the 'Next' button after entering the OTP
next_button_1 = wait.until(EC.presence_of_element_located((By.XPATH, "//button[contains(@Class, 'r-sdzlij') and contains(@Class, 'r-1phboty')]")))
driver.execute_script("window.scrollBy(0, 200);")
time.sleep(random.uniform(0.3, 1.0))
driver.execute_script("arguments[0].scrollIntoView(true);", next_button_1)
ActionChains(driver).move_to_element(next_button_1).pause(random.uniform(0.3, 1.0)).click().perform()
print("
Clicked 2nd Next")
time.sleep(random.uniform(4.0, 6.5))
Source code of button:
<div class="css-175oi2r r-1f0wa7y"><div class="css-175oi2r"><div class="css-175oi2r"><div class="css-175oi2r r-b9tw7p"><button role="button" class="css-175oi2r r-sdzlij r-1phboty r-rs99b7 r-lrvibr r-19yznuf r-64el8z r-1fkl15p r-1loqt21 r-o7ynqc r-6416eg r-1ny4l3l" type="button" style="border-color: rgba(0, 0, 0, 0); background-color: rgb(239, 243, 244);"><div dir="ltr" class="css-146c3p1 r-bcqeeo r-qvutc0 r-37j5jr r-q4m81j r-a023e6 r-rjixqe r-b88u0q r-1awozwy r-6koalj r-18u37iz r-16y2uox r-1777fci" style="color: rgb(15, 20, 25);"><span class="css-1jxf684 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-bcqeeo r-1ttztb7 r-qvutc0 r-poiln3 r-1inkyih r-rjixqe"><span class="css-1jxf684 r-bcqeeo r-1ttztb7 r-qvutc0 r-poiln3">Next</span></span></div></button></div></div></div></div>
Someone please Help me to solve this.
I am trying to do automation on twitter to auto create accounts.
I am done with all codings and captcha bypass. But twitter detects my automation after entering verification code and i click on next button.
Till entering email verification code. there are no issues. but clicking on next button is detected. To confirm that i actually paused the automation on this step. then i manually clicked next then it is not detected.
Tried different solutions like Simulate Mouse Movement, ActionChains, windows scrolls, Random Time Delays - But nothing works.
Twitter detects it and not letting me to navigate to next page.
My Py Code:
# Step 5: Click the 'Next' button after entering the OTP
next_button_1 = wait.until(EC.presence_of_element_located((By.XPATH, "//button[contains(@Class, 'r-sdzlij') and contains(@Class, 'r-1phboty')]")))
driver.execute_script("window.scrollBy(0, 200);")
time.sleep(random.uniform(0.3, 1.0))
driver.execute_script("arguments[0].scrollIntoView(true);", next_button_1)
ActionChains(driver).move_to_element(next_button_1).pause(random.uniform(0.3, 1.0)).click().perform()
print("
time.sleep(random.uniform(4.0, 6.5))
Source code of button:
<div class="css-175oi2r r-1f0wa7y"><div class="css-175oi2r"><div class="css-175oi2r"><div class="css-175oi2r r-b9tw7p"><button role="button" class="css-175oi2r r-sdzlij r-1phboty r-rs99b7 r-lrvibr r-19yznuf r-64el8z r-1fkl15p r-1loqt21 r-o7ynqc r-6416eg r-1ny4l3l" type="button" style="border-color: rgba(0, 0, 0, 0); background-color: rgb(239, 243, 244);"><div dir="ltr" class="css-146c3p1 r-bcqeeo r-qvutc0 r-37j5jr r-q4m81j r-a023e6 r-rjixqe r-b88u0q r-1awozwy r-6koalj r-18u37iz r-16y2uox r-1777fci" style="color: rgb(15, 20, 25);"><span class="css-1jxf684 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-bcqeeo r-1ttztb7 r-qvutc0 r-poiln3 r-1inkyih r-rjixqe"><span class="css-1jxf684 r-bcqeeo r-1ttztb7 r-qvutc0 r-poiln3">Next</span></span></div></button></div></div></div></div>
Someone please Help me to solve this.