diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-01-27 02:00:44 +0100 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-01-27 02:00:44 +0100 |
commit | 47b50b4827121ec68d9e52a018b631a4a3f09625 (patch) | |
tree | d4d9d2040f8588634413be86d7e24b914fa6e29c /g4f/Provider/selenium | |
parent | Fix: ChromeDriver only supports characters in the BMP (diff) | |
download | gpt4free-47b50b4827121ec68d9e52a018b631a4a3f09625.tar gpt4free-47b50b4827121ec68d9e52a018b631a4a3f09625.tar.gz gpt4free-47b50b4827121ec68d9e52a018b631a4a3f09625.tar.bz2 gpt4free-47b50b4827121ec68d9e52a018b631a4a3f09625.tar.lz gpt4free-47b50b4827121ec68d9e52a018b631a4a3f09625.tar.xz gpt4free-47b50b4827121ec68d9e52a018b631a4a3f09625.tar.zst gpt4free-47b50b4827121ec68d9e52a018b631a4a3f09625.zip |
Diffstat (limited to 'g4f/Provider/selenium')
-rw-r--r-- | g4f/Provider/selenium/AItianhuSpace.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/Provider/selenium/AItianhuSpace.py b/g4f/Provider/selenium/AItianhuSpace.py index 6af8ceaf..4c438e3b 100644 --- a/g4f/Provider/selenium/AItianhuSpace.py +++ b/g4f/Provider/selenium/AItianhuSpace.py @@ -52,9 +52,9 @@ class AItianhuSpace(AbstractProvider): wait.until(EC.visibility_of_element_located((By.ID, "sheet"))) driver.execute_script(f""" document.getElementById('sheet').addEventListener('click', () => {{ - window.open('{url}', '_blank'); + window.open(arguments[0]); }}); - """) + """, url) driver.find_element(By.ID, "sheet").click() time.sleep(10) |