can send logs to oracle cloud
This commit is contained in:
+5
-2
@@ -1,3 +1,5 @@
|
||||
import time
|
||||
|
||||
import playwright
|
||||
from playwright.sync_api import sync_playwright
|
||||
|
||||
@@ -12,9 +14,9 @@ def check_result_page(url):
|
||||
|
||||
|
||||
def run(playwright, url):
|
||||
pixel_2 = playwright.devices['Pixel 2']
|
||||
browser = playwright.webkit.launch(headless=False)
|
||||
page = browser.new_page()
|
||||
page = browser.new_page(
|
||||
user_agent="Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.87 Mobile Safari/537.36")
|
||||
url_to_check = url.replace("register/", "")
|
||||
print(url_to_check)
|
||||
page.goto(url_to_check)
|
||||
@@ -23,6 +25,7 @@ def run(playwright, url):
|
||||
browser.close()
|
||||
|
||||
|
||||
# need to start at 21h00
|
||||
if __name__ == '__main__':
|
||||
# get the list
|
||||
db_manager = DataManager()
|
||||
|
||||
Reference in New Issue
Block a user