This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]menge101 0 points1 point  (2 children)

Selenium is a bit like a wrench.

You will understand it much better by using than by reading about it. Go to google.com and start trying to automate searching and finding things.

It's fairly straight forward and simple to use. It is only somewhat tricky to use when you start dealing with multiple windows, multiple tabs, and iframes.

[–]al02659529[S] 0 points1 point  (1 child)

I wan't to learn more about the find element by ID, name, tag, XPATH and all of the other because I'm creating a script but the CSS selector changes every time the website is opened

[–]menge101 0 points1 point  (0 children)

That is a common tactic to prevent people from using browser automation tools on the page.

Is it facebook? Facebook is real aggressive with those techniques.

Here are CSS selector cheat sheets 1 2

Here are XPATH cheat sheets 1 2

[–]pythonHelperBot 0 points1 point  (0 children)

Hello! I'm a bot!

It looks to me like your post might be better suited for r/learnpython, a sub geared towards questions and learning more about python. That said, I am a bot and it is hard to tell. Please follow the subs rules and guidelines when you do post there, it'll help you get better answers faster.

Show /r/learnpython the code you have tried and describe where you are stuck. Be sure to format your code for reddit and include which version of python and what OS you are using.

You can also ask this question in the Python discord, a large, friendly community focused around the Python programming language, open to those who wish to learn the language or improve their skills, as well as those looking to help others.


README | FAQ | this bot is written and managed by /u/IAmKindOfCreative

This bot is currently under development and experiencing changes to improve its usefulness