2

how can I automate a website like facebook that don't have id as selectable element and the class and other elements are dynamic I mean they change when the page is refreshed how do I automate this with selelium python

I have tried using the xpath but it did work, I also used the tag element for some buttons and its working correctly but there are other sections that don't have tag I am only left with class and xpath but the problem is that the class name changes anytime the page is refreshed.

Eazy
  • 31
  • 1
  • Can you explain "tried using the xpath but it did work" in detail. Have a look at [ask] and [mcve] for additional information. – SiKing Aug 03 '23 at 17:22
  • Do you understand they are doing this in part to prevent you from doing what you are doing, to protect their copyrighted property? You're fighting a losing battle. – Tim Roberts Aug 03 '23 at 20:28

0 Answers0