Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I get Ifram without using--disable-site-isolation-trials? #1076

Open
m7rick opened this issue Jun 19, 2024 · 5 comments
Open

How do I get Ifram without using--disable-site-isolation-trials? #1076

m7rick opened this issue Jun 19, 2024 · 5 comments
Labels
question Questions related to rod

Comments

@m7rick
Copy link

m7rick commented Jun 19, 2024

Rod Version: v0.116.1

The code to demonstrate your question

func TestRod() {
        u := "ws://localhost:51268/devtools/browser/d7231f3d-56e0-4e7c-91d7-85a8da8820b7"
	log.Println(u)
	browser := rod.New().ControlURL(u).MustConnect()
        page := browser.MustPage("https://2captcha.com/demo/cloudflare-turnstile").MustWaitLoad()

	log.Println(page.MustInfo().Title)


	iframePage:= page.MustSearch(`iframe`).MustFrame()
	a := iframePage.MustHTML()
	log.Println(a)
	text := iframePage.MustElement("#challenge-stage > div > label > span.cb-lb-t").MustText()

	fmt.Println(text)
	iframePage.MustElement("#challenge-stage > div > label > input[type=checkbox]").MustClick()
}

What you got

panic: runtime error: invalid memory address or nil pointer dereference

What you expect to see

How do I get Ifram without using--disable-site-isolation-trials?

What have you tried to solve the question

chrome kernel: "Chrome/124.0.6367.223"
Adding "--disable-site-isolation-trials" to the browser will solve the problem, but adding this parameter will cause cloudflare-turnstile to loop indefinitely

@m7rick m7rick added the question Questions related to rod label Jun 19, 2024
Copy link

Please fix the format of your markdown:

31:65 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]
33 MD022/blanks-around-headings/blanks-around-headers Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## What have you tried to solve the question"]

generated by check-issue

@ysmood
Copy link
Member

ysmood commented Jun 19, 2024

Even I remove the "--disable-site-isolation-trials" it will still fail to pass the bot detection, I think it's something else that blocks you. You'd better to research how cloudflare-turnstile works.

@m7rick
Copy link
Author

m7rick commented Jun 19, 2024

Thank you

@Longdexin
Copy link

@m7rick remove --disable-site-isolation-trials anyway
2
and use the old fashion way here #548 (comment)

@luxuana
Copy link

luxuana commented Nov 7, 2024

I also encountered this problem very distressed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions related to rod
Projects
None yet
Development

No branches or pull requests

4 participants