seleniumbase / SeleniumBase

📊 Python's all-in-one framework for web crawling, scraping, testing, and reporting. Supports pytest. UC Mode provides stealth. Includes many tools.
https://seleniumbase.io
MIT License
4.46k stars 909 forks source link

Can not bypass detection when using a VPN connection (NordVPN) #2794

Closed bjornkarlsson closed 1 month ago

bjornkarlsson commented 1 month ago

Reopening Issue 2793, as I am not sure the testing instructions were clear.

I experience this issue ONLY when connected to a VPN (Nord vpn). This is the modified code as per comment.


    url = 'https://rateyourmusic.com/artist/pink-floyd/'
    with SB(uc=True) as sb:
        sb.driver.uc_open_with_reconnect(url, 8)

        if sb.is_element_visible('iframe[src*="challenge"]'):
            sb.driver.uc_switch_to_frame('iframe[src*="challenge"]')
            confirm_input = sb.driver.find_element(By.CSS_SELECTOR, 'input')
            confirm_input.uc_click()
            sb.sleep(2)

What happens is that the verification box excepts the user action (does not happen on direct connection).

After clicking the checkbox input (manually or as instructed by the driver) the verification proceeds for a seconds (green spinning wheel). This fails and leads to initial state.

Please could we make sure is tested with a VPN subscription, or is anyone that can do this?

P.S I am able to pass the verification process after clicking the checkbox with selenium-driverless

Many thanks!

mdmintz commented 1 month ago

Duplicate of your existing ticket: https://github.com/seleniumbase/SeleniumBase/issues/2793.