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

I do not know where is the problem, Baidu always prompt need to verify #68

Open
asdwyujian opened this issue Apr 14, 2023 · 0 comments
Open

Comments

@asdwyujian
Copy link

asdwyujian commented Apr 14, 2023

I do not know where is the problem, Baidu always prompt need to verify
https://www.baidu.com/

var engine = EngineBuilder.New()
.UseJint()
.Build();
engine.UseKnownUserAgent(KnownUserAgents.Windows_Firefox);

var page = await engine.OpenUrl("https://www.baidu.com");

engine.WaitDocumentLoad();
var document = page.Document;

var input = document.WaitId("kw") as HtmlInputElement;
input.Value = "123";

var button = document.WaitId("su") as HtmlInputElement;
button.Click();

Thread.Sleep(5000);

document = engine.Document;
var html = document.DocumentElement.OuterHTML;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant