i need a way to find element by full tag in web automation using selenium and python

75 Views Asked by At

I'm using selenium and python to web automation. in my program i get some tags that are overlay and i need to remove them. so if every time i get a different tag like these:

1-<div class="bErdLd aID8W wwYr3">
2-<a href="/process.php?d=1">
3-<img id="dawqe">
4-...

so a dirty solution is: define html attributes in a function and search in string () and then extract its value and give them to another function to find element.

is there a better and cleaner way to find element by full tags like above as input and remove them?

0

There are 0 best solutions below