return false for webdrive

This commit is contained in:
2022-09-04 19:39:34 +02:00
parent ecc92f4bdf
commit f4fadc58ac
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ playwright==1.25.0
dataclasses~=0.6
SpeechRecognition==3.8.1
pymongo==4.1.1
anticaptchaofficial==1.0.43
wget==3.2.0
oci~=2.54.1
XlsxWriter~=3.0.3
playwright-stealth==1.0.5
+1 -1
View File
@@ -163,7 +163,7 @@ class CommandorPage:
self.page = context.new_page()
# hide webdriver information
self.page.add_init_script("""() => {
Object.defineProperty(navigator,'webdriver',{get: () => undefined});
Object.defineProperty(navigator,'webdriver',{get: () => false});
Object.defineProperty(navigator, 'platform', {
get: () => {
return "iPhone";