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()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top