Closed lf2a closed 2 years ago
@only_if_element raises an error because self.state.element is None. self.click(x, y) doesn't have x, y params.
@only_if_element
self.state.element
None
self.click(x, y)
x
y
@only_if_element def click_on(self, label): """ Click on the element. Args: label (str): The image identifier """ x, y = self.get_element_coords_centered(label) self.click(x, y)
@only_if_element
raises an error becauseself.state.element
isNone
.self.click(x, y)
doesn't havex
,y
params.