Update notionparser.py

This commit is contained in:
Akash Sharma 2021-06-18 22:36:29 +05:30 committed by GitHub
parent b8a59cda17
commit c80f64ed10
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: if not is_toggled:
# click on it, then wait until all elements are displayed # click on it, then wait until all elements are displayed
toggle_button.click() self.driver.execute_script("arguments[0].click();", toggle_button)
try: try:
WebDriverWait(self.driver, timeout).until( WebDriverWait(self.driver, timeout).until(
toggle_block_has_opened(toggle_block) toggle_block_has_opened(toggle_block)