Open mrafieefard opened 1 year ago
can you share code switch to frame. i am beginer and can not switch on hcaptcha. tks
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();
same problem! When I switch to frame, hcaptcha can detect. But if I remove that line of code to switch frame, it bypass!
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
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?