Skip to content

Commit

Permalink
test UC 3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
HMaker committed Jul 25, 2023
1 parent 3bd8c05 commit c017f97
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions selenium-detector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Clone this repository, install the requirements and run the test with `python te
| UC version | Detected? |
| --- | --- |
| 3.4.6 [bf7dcf8](https://github.com/ultrafunkamsterdam/undetected-chromedriver/commit/bf7dcf8b5713020de7454844fb80036b8c456503) | **Yes** |
| 3.4.7 [d29b3e3](https://github.com/ultrafunkamsterdam/undetected-chromedriver/commit/d29b3e300fe75aa878e0313bce37a1816d6bd4c0) | **Yes** |
| 3.5.0 [bc1445a](https://github.com/ultrafunkamsterdam/undetected-chromedriver/commit/bc1445aac720eda300ffba70e26bbf95eef4b6d1) | **Yes** |


[1]: https://chromedriver.chromium.org/home
Expand Down
4 changes: 2 additions & 2 deletions selenium-detector/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ idna==3.4
outcome==1.2.0
PySocks==1.7.1
requests==2.28.1
selenium==4.4.3
selenium==4.10.0
sniffio==1.3.0
sortedcontainers==2.4.0
trio==0.21.0
trio-websocket==0.9.2
undetected-chromedriver==3.4.6
undetected-chromedriver==3.5.0
urllib3==1.26.12
websockets==10.3
wsproto==1.2.0
6 changes: 5 additions & 1 deletion selenium-detector/test_uc.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
import argparse
import undetected_chromedriver as uc
from selenium.webdriver.common.by import By
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities


parser = argparse.ArgumentParser(description='Test undetected-chromedriver against the Chromedriver Detector')
parser.add_argument('--tester', default='http://127.0.0.1:5500/index.html', help='URL of the test page')
parser.add_argument('--chrome-version', type=int, default=None, help='major version of chrome (eg 110)')
args = parser.parse_args()

chrome = uc.Chrome(version_main=args.chrome_version)
options = uc.ChromeOptions()
caps = DesiredCapabilities.CHROME.copy()
caps['loggingPrefs'] = {'browser': 'OFF'}
chrome = uc.Chrome(version_main=args.chrome_version, desired_capabilities=caps)
try:
chrome.get(args.tester)
chrome.find_element(By.CSS_SELECTOR, '#chromedriver-token').send_keys(
Expand Down

0 comments on commit c017f97

Please sign in to comment.