Skip to content

Commit

Permalink
Removed the gitleaks issue with mobile agents
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed May 3, 2024
1 parent 64a9a6f commit 60dc53a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions helpers/playwrightHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ def launch_firefox(self, headless_mode):
print(f"Error launching Firefox: {e}")

def launch_mobile_browser(self, device_name, headless_mode):
ua_string_android_chrome = 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.6312.40 Mobile Safari/537.36'
ua_string_android_samsung_internet = 'Mozilla/5.0 (Linux; Android 13; K; Pixel 4 XL) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/24.0 Chrome/117.0.0.0 Mobile Safari/537.36'
ua_string_iphone_safari = 'Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3.1 Mobile/15E148 Safari/604.1'
ua_string_iphone_chrome = 'Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/123.0.6312.52 Mobile/15E148 Safari/604.1'

try:
if "iphone_12" == device_name.lower():
self.browser = self.playwright.webkit.launch(headless=headless_mode)
Expand Down

0 comments on commit 60dc53a

Please sign in to comment.