nodriver icon indicating copy to clipboard operation
nodriver copied to clipboard

Update element.py: box_model, size, location, rect, get_attribute, is_displayed, is_enabled, is_selected, is_clickable

Open boludoz opened this issue 1 year ago • 4 comments

Example:

  • box_model: BoxModel(content=Quad([202, 679.234375, 710, 679.234375, 710, 700.703125, 202, 700.703125]), padding=Quad([189, 669.234375, 723, 669.234375, 723, 710.703125, 189, 710.703125]), border=Quad([188, 668.234375, 724, 668.234375, 724, 711.703125, 188, 711.703125]), margin=Quad([188, 668.234375, 724, 668.234375, 724, 711.703125, 188, 711.703125]), width=536, height=43, shape_outside=None)
  • size {'height': 43, 'width': 536}
  • location: {'x': 202, 'y': 679.234375}
  • rect: {'top_left': {'x': 202, 'y': 679.234375}, 'bottom_right': {'x': 710, 'y': 700.703125}, 'width': 536, 'height': 43}
  • get_attribute: gameUserId3
  • is_displayed: True
  • is_enabled: True
  • is_selected: False
  • is_clickable: True

boludoz avatar Sep 05 '24 13:09 boludoz

@ultrafunkamsterdam Please add these features, they are useful. 🙏🥺

boludoz avatar Sep 05 '24 13:09 boludoz

In the future I plan to add find_visible and find_selected, find_clickable if you allow me along with other homonymous functions.

boludoz avatar Sep 05 '24 13:09 boludoz

still applies?

ultrafunkamsterdam avatar Mar 03 '25 16:03 ultrafunkamsterdam

still applies?

yes sir

boludoz avatar Mar 07 '25 16:03 boludoz