Selenium


Joined
Sep 19, 2022
Messages
1
Reaction score
0
Im trying to do a selenium bot, i watched few youtoube videos and try my best. But i have problem "xception has occurred: TypeError Object of type function is not JSON serializable File "C:\Users\dawid\Desktop\botchrome\bot.py", line 9, in esklep = browser.find_element(xpath_tokenizer, '//*[@id="react-portals"]/div[28]/div/div/div/div[3]/button[2]')"

code:

Code:
from selenium import webdriver

browser = webdriver.Chrome('C:\\Users\\dawid\\Desktop\\chromedriver')

browser.get('https://www.x-kom.pl/p/704586-notebook-laptop-156-lenovo-ideapad-3-15-ryzen-5-8gb-512-win11.html')

esklep = browser.find_element(xpath_tokenizer, '//*[@id="react-portals"]/div[28]/div/div/div/div[3]/button[2]')
esklep.click()



esklep.click()

input()
 
Ad

Advertisements


Top