Giter Site home page Giter Site logo

Comments (4)

enricodias avatar enricodias commented on July 18, 2024 1

You can wait with using sleep or use the method Page::waitUntilContainsElement if the script you are waiting happens to create a new element on the page.

To get the page status code, see #41

from chrome.

consigliere23 avatar consigliere23 commented on July 18, 2024 1

@enricodias thanks

from chrome.

enricodias avatar enricodias commented on July 18, 2024

It's a real browser, it will follow any redirect by default. You can wait a couple of seconds manually in your php code, but you can't listen for the execution of a specific js in the browser.

The headless option enables or disables the browser UI. Some sites may try to detect this to prevent bots.

from chrome.

consigliere23 avatar consigliere23 commented on July 18, 2024

Yes thanks, that's what I thought.
How to set manually in code to wait? Just sleep or there is some method for it?
As I need to wait ajax requests on page to finish in order to get html when these js are executed.
One more question, is there any option to get get page status code?

from chrome.

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.