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 254ee6b commit 9dd459fCopy full SHA for 9dd459f
scripts/automated-notebook-run-script.py
@@ -175,8 +175,7 @@ def main():
175
print("Found element:", download_button)
176
177
time.sleep(20)
178
- driver.execute_script(
179
- """
+ click_download_button_script = """
180
const el = arguments[0];
181
182
// Force element to be visible and focused
@@ -190,9 +189,11 @@ def main():
190
189
composed: true, // IMPORTANT for shadow DOM
191
view: window
192
}));
193
- });
194
- """,
195
- download_button,
+ });
+ """
+
+ download_button = WebDriverWait(driver, 20).until(
196
+ lambda d: d.execute_script(click_download_button_script,download_button)
197
)
198
199
0 commit comments