Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import seleniumbase.common.exceptions
- from seleniumbase import SB
- from time import sleep
- from random import randint
- def rand():
- return randint(1200, 2400) / 1000
- with SB(uc=True) as sb:
- sb.slow_mode = True
- try:
- sb.driver.get('https://allegro.pl/logowanie')
- sb.type('#login', 'elo')
- sb.type('#password', '320')
- sb.slow_click('a:contains("Zaloguj się")', rand())
- sb.sleep(1000)
- except seleniumbase.common.exceptions.NoSuchElementException as e:
- print("e")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement