#๐Ÿ”’ how can i find the computed location of elements on a html?

9 messages ยท Page 1 of 1 (latest)

mortal lynxBOT
#

Please react with โœ… to upload your file(s) to our paste bin, which is more accessible for some users.

#

@jaunty lintel

Python help channel opened

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.

jaunty lintel
#

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

quasi holly
#

i might be very wrong, but it might refer to the parent of the elements position

#

instead of the entire page

jaunty lintel
#

how could i try to find the absolute position of the element?

tacit gate
#

I'm pretty sure that is a pdf
Why are you using this method to do sopithink

mortal lynxBOT
#
Python help channel closed for inactivity

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.