Click an element at an {X,Y}-offset location. {0,0} is the top-left corner of the element. If center==True, {0,0} becomes the center of the element. If mark==True, will draw a dot at location. (Useful for debugging) In Demo Mode, mark becomes True unless set to False.
(
self,
selector,
x,
y,
by="css selector",
mark=None,
timeout=None,
center=None,
scroll=True,
)
| 2485 | self.__slow_mode_pause_if_active() |
| 2486 | |
| 2487 | def click_with_offset( |
| 2488 | self, |
| 2489 | selector, |
| 2490 | x, |
| 2491 | y, |
| 2492 | by="css selector", |
| 2493 | mark=None, |
| 2494 | timeout=None, |
| 2495 | center=None, |
| 2496 | scroll=True, |
| 2497 | ): |
| 2498 | """Click an element at an {X,Y}-offset location. |
| 2499 | {0,0} is the top-left corner of the element. |
| 2500 | If center==True, {0,0} becomes the center of the element. |
| 2501 | If mark==True, will draw a dot at location. (Useful for debugging) |
| 2502 | In Demo Mode, mark becomes True unless set to False. (Default: None)""" |
| 2503 | self.__check_scope() |
| 2504 | self.__click_with_offset( |
| 2505 | selector, |
| 2506 | x, |
| 2507 | y, |
| 2508 | by=by, |
| 2509 | double=False, |
| 2510 | mark=mark, |
| 2511 | timeout=timeout, |
| 2512 | center=center, |
| 2513 | scroll=scroll, |
| 2514 | ) |
| 2515 | |
| 2516 | def double_click_with_offset( |
| 2517 | self, |
no test coverage detected