ultrafunkamsterdam / undetected-chromedriver

Custom Selenium Chromedriver | Zero-Config | Passes ALL bot mitigation systems (like Distil / Imperva/ Datadadome / CloudFlare IUAM)
https://github.com/UltrafunkAmsterdam/undetected-chromedriver
GNU General Public License v3.0
9.53k stars 1.13k forks source link

switch to frame is detect #1081

Open mrafieefard opened 1 year ago

mrafieefard commented 1 year ago

I use a switch frame for hcaptcha and when it changes frame for solving execute something I test it and solve the captcha by myself and everything is ok

Can you find another way to switch frames?

HkerVit commented 1 year ago

can you share code switch to frame. i am beginer and can not switch on hcaptcha. tks

mrafieefard commented 1 year ago

Um its to easy

// Create a new instance of the Firefox driver
WebDriver driver = new FirefoxDriver();

// Navigate to a page with frames
driver.get("http://example.com/frames");

// Switch to the first frame by index
driver.switchTo().frame(0);

// Perform some actions on the elements inside the frame
WebElement heading = driver.findElement(By.tagName("h1"));
System.out.println(heading.getText());

// Switch back to the main page
driver.switchTo().defaultContent();
littlecutebird commented 1 year ago

same problem! When I switch to frame, hcaptcha can detect. But if I remove that line of code to switch frame, it bypass!

mrafieefard commented 1 year ago

same problem! When I switch to frame, hcaptcha can detect. But if I remove that line of code to switch frame, it bypass!

Unfortunately yes