GithubHelp home page GithubHelp logo

HandleAuth, alert not closing about rod HOT 5 CLOSED

go-rod avatar go-rod commented on July 19, 2024
HandleAuth, alert not closing

from rod.

Comments (5)

mer0men avatar mer0men commented on July 19, 2024 1

Well........
I'm too stupid, thank you)

from rod.

ysmood avatar ysmood commented on July 19, 2024

Sorry, that's too hard to understand what's happening to you. I need more info to understand how to reproduce your issue on my local.

Here's the example to use the code:

https://github.com/ysmood/rod/blob/3ae35ce463f28e3ce8055e6dafda5eb33f39fc53/browser_test.go#L70-L72

Or can you show me your code that doesn't work?

from rod.

mer0men avatar mer0men commented on July 19, 2024

2020-05-13-163710_1366x768_scrot

i need to click button to close the alert and auth, how can i close the alert in headless mode?

from rod.

ysmood avatar ysmood commented on July 19, 2024

Look at my code carefully πŸ˜‚ , the HandleAuth should be set up before the Navigation, your code should be:

browser.HandleAuth("a", "b")
page := browser.Page("https://ifconfig.co")

If this dialog blocks your navigation, how can your code go on? Think twice πŸ˜‚

from rod.

ysmood avatar ysmood commented on July 19, 2024

BTW, the comment of the HandleAuth is very clear: HandleAuth for the next basic HTTP authentication.

It's the next dialog, not the previous πŸ˜‚

from rod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.