nodriver
nodriver copied to clipboard
Update element.py: box_model, size, location, rect, get_attribute, is_displayed, is_enabled, is_selected, is_clickable
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
@ultrafunkamsterdam Please add these features, they are useful. 🙏🥺
In the future I plan to add find_visible and find_selected, find_clickable if you allow me along with other homonymous functions.
still applies?
still applies?
yes sir