Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98827

Issue sending text to WebElement through Selenium

$
0
0

I'm trying to get this code to work, but it isn't. I enter manually and it works but not when I automate it.

import selenium
import time
import os
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
num = 1
while num != 1000:
    driver = webdriver.Chrome(ChromeDriverManager().install())
    driver.get('https://mobile.brawlhalla.com/?kid=1415HM')
    id_box = driver.find_element_by_id('email')
    id_box.send_keys(str(num) +'@1.com')
    login_button = driver.find_element_by_id('btn-id-6zgew9flrfn')
    login_button.click()
    time.sleep(10)
    os.system("taskkill /im chrome.exe /f")
    num = num + 1

Viewing all articles
Browse latest Browse all 98827

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>