mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-09-24 06:15:52 +00:00
BrowserSteps - Use playwright 'force' click for elements that arent clickable (div etc)
This commit is contained in:
@@ -105,7 +105,7 @@ class steppable_browser_interface():
|
||||
print("Clicking element")
|
||||
if not len(selector.strip()):
|
||||
return
|
||||
self.page.click(selector, timeout=10 * 1000, delay=randint(200, 500))
|
||||
self.page.locator(selector).click(timeout=30 * 1000, delay=randint(200, 500), force=True)
|
||||
|
||||
def action_click_element_if_exists(self, selector, value):
|
||||
import playwright._impl._api_types as _api_types
|
||||
|
||||
Reference in New Issue
Block a user