-
| Provided by @mdmintz at Stackoverflow, the solution does not work for me anymore since yesterday. The page just refreshes for a few tries. from seleniumbase import SB
def verify_success(sb):
    sb.assert_text("some text to be detected so to probably determine as success", timeout=7.25)
    sb.post_message("Selenium wasn't detected!", duration=2.8)
    sb._print("\n Success! Website did not detect Selenium! ")
with SB(uc=True, incognito=True) as sb:
    sb.open(some_url)
    try:
        verify_success(sb)
    except Exception:
        if sb.is_element_visible('input[value*="Verify"]'):
            sb.click('input[value*="Verify"]')
        elif sb.is_element_visible('iframe[title*="challenge"]'):
            sb.switch_to_frame('iframe[title*="challenge"]')
            sb.click("span.mark")
        else:
            raise Exception("Detected!")
        try:
            verify_success(sb)
        except Exception:
            raise Exception("Detected!") | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            mdmintz
          
      
      
        Jul 12, 2023 
      
    
    Replies: 1 comment 3 replies
-
| This was resolved by  | 
Beta Was this translation helpful? Give feedback.
                  
                    3 replies
                  
                
            
      Answer selected by
        mdmintz
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
This was resolved by
4.15.14- https://github.com/seleniumbase/SeleniumBase/releases/tag/v4.15.14