This is an automated email from the ASF dual-hosted git repository.

qiuxiafan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-showcase.git


The following commit(s) were added to refs/heads/main by this push:
     new 078f810  update the selenium chrome process (#221)
078f810 is described below

commit 078f81008b107c9aa2b5e0794a36e5946d679088
Author: Fine0830 <[email protected]>
AuthorDate: Tue Jan 6 16:14:40 2026 +0800

    update the selenium chrome process (#221)
---
 services/load-gen/loadgen.py | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/services/load-gen/loadgen.py b/services/load-gen/loadgen.py
index 4aba994..79c1795 100644
--- a/services/load-gen/loadgen.py
+++ b/services/load-gen/loadgen.py
@@ -51,5 +51,13 @@ while True:
         print(f"Error: {e}")
         traceback.print_exc()
         break
-    finally:
-        time.sleep(10)
+    
+    # Wait a bit on the page
+    time.sleep(5 * 60)
+    
+    # Close the page (navigate to blank page)
+    print("Closing page...")
+    driver.get("about:blank")
+    
+    # Wait while page is closed
+    time.sleep(60)

Reply via email to