#๐ how can i find the computed location of elements on a html?
9 messages ยท Page 1 of 1 (latest)
@jaunty lintel
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
getBoundingClientRect returns 0,0 when its clearly not 0
i will be using Pillow to determine the bounds of the relevant parts of the background image
but to do that i need the computed positions of the elements
using selenium it returns 0,0 for most elements, which is confusing
i check on my browser and it returns 0,0 also
i might be very wrong, but it might refer to the parent of the elements position
instead of the entire page
how could i try to find the absolute position of the element?
I'm pretty sure that is a pdf
Why are you using this method to do so
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.