We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37da2a0 commit fef3207Copy full SHA for fef3207
pydoll/element.py
@@ -257,14 +257,14 @@ async def click_using_js(self):
257
)
258
259
async def click(self, x_offset: int = 0, y_offset: int = 0):
260
+ if self._is_option_tag():
261
+ return await self.click_option_tag()
262
+
263
if not await self._is_element_visible():
264
raise exceptions.ElementNotVisible(
265
'Element is not visible on the page.'
266
267
- if self._is_option_tag():
- return await self.click_option_tag()
-
268
await self.scroll_into_view()
269
270
try:
0 commit comments