r/SeleniumPython • • Mar 28 '25

Python Selenium

Hi everyone

I am stuck somewhere in Python selenium automation. The portal I want to automate doesn't allow right click on the portal so automating a website using xpath is not possible. I have tried copying the xpath using ctrl+shift+I but the script is not at all clicking the element. Can someone please guide me on it. I really need help.

1 Upvotes

5 comments sorted by

2

u/FuzzyCarry137 Mar 28 '25

Share the dom structure if possible

1

u/Responsible_Try4050 Mar 30 '25

Are you asking about the complete elements of the webpage?

2

u/ReMiiind Mar 30 '25

Use selectors hub, it might help you.

1

u/Responsible_Try4050 Apr 01 '25

I tried it but selector hub gives the xpath of other webpages but not for the page I need to automate

1

u/Floryda_Guennoc 3d ago

what exact error is the console throwing when it fails to click? knowing whether it cant find the element vs cant interact with it will narrow this down pretty fast.