Merge pull request #64 from Akash-Sharma-1/master

Added Javascript based click for toggle buttons
This commit is contained in:
Leonardo Cavaletti 2021-06-21 12:21:02 +01:00 committed by GitHub
commit d0b4dbf76d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -309,7 +309,7 @@ class Parser:
)
if not is_toggled:
# click on it, then wait until all elements are displayed
toggle_button.click()
self.driver.execute_script("arguments[0].click();", toggle_button)
try:
WebDriverWait(self.driver, timeout).until(
toggle_block_has_opened(toggle_block)