add fr-FR context

This commit is contained in:
Lei PAN
2022-06-04 09:58:48 +02:00
parent 05eb94f2f9
commit f8167dd2d0
+1 -1
View File
@@ -141,7 +141,7 @@ class CommandorPage:
self.browser = pwright.webkit.launch(headless=False, timeout=PAGE_TIMEOUT, proxy=proxy)
self.logger.info("模拟设备: " + device)
pixel_2 = pwright.devices[device]
context = self.browser.new_context(**pixel_2, locale='en-GB')
context = self.browser.new_context(**pixel_2, locale='fr-FR')
self.page = context.new_page()
# hide webdriver information
self.page.add_init_script("""() => {