Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Tiago
    @tpsvr_twitter
    @dege88 These examples I tried but did not work.
    With show: false I tried it now and it did not work.
    thanks
    Basheer
    @basherr
    any one there?'
    Anouar Hassine
    @anouarhassine
    Hi everyone, am using CodeceptJs with Nightmare for my end to end test. Is there a way to set the browser language? Because my app is detecting the browser language with navigator.language and I'd like to test using a specific one. Thanks!
    Davide De Gennaro
    @dege88
    @anouarhassine use the .header function to pass an accept language header with your language
    (you can sniff your browsers headers with this site: https://www.whatismybrowser.com/detect/what-http-headers-is-my-browser-sending or by using the inspector of your browser)
    Anouar Hassine
    @anouarhassine
    Thanks @dege88 I'll have a look at that!
    Basheer
    @basherr
    segmentio/nightmare#1357
    I see that the issues aren't being resolved. Do you guys have any plan to maintain?
    Davide De Gennaro
    @dege88
    @basherr after the release of headless chrome ( https://developers.google.com/web/updates/2017/04/headless-chrome ) almost all the browser automation libraries died
    @basherr about your issue I believe that the class definition is not visible inside the execute scope, I believe that you need to redeclare it inside.
    Basheer
    @basherr
    @dege88 There isn't just that much code but alot...! It was just for hint...
    Davide De Gennaro
    @dege88
    @basherr I expected it, but unfortunately (fortunately) the electron process and the node process don't share the same resources
    \void
    @ctrlaltdev
    Hi, I've submitted this PR: segmentio/nightmare#1364 - it really just update the electron version to fix a vulnerability.
    doriansavage
    @doriansavage
    Hi
    I have an application that needs to scrape differents websites from a list of search terms. Exemple, I put 5 search terms (1 by line on a textarea). And for each search term, I want to type it on : amazon, site2, site3 and site4. And then take a screenshots. It works, but I have lots of difficulty about performences...
    How would you do ?
    doriansavage
    @doriansavage
    I would like smth like that
    but I could have hundreds of search terms
    si I guess I have to wait until each website is scraped to use the next nightmare goto
    could someone help me ? I have budget
    Sayam Qazi
    @devqazi
    Hi
    doriansavage
    @doriansavage
    Hi someone is here ?
    I'm wondering if I can use nightmare for for scrapping lots of page and so a looong script execution ?
    Davide De Gennaro
    @dege88
    @doriansavage yes
    you can use the same instance sequentially or use different instances to scrape in parallel
    doriansavage
    @doriansavage
    I'm having headeach with loops & promises :package:
    I'm using smth like that for now
    but sometime I have promise not resolved errors when I have a long script runtime
    Davide De Gennaro
    @dege88
    you are not catching errors
    you must also remember that the execution timeout defaults to 30 seconds
    reshetnyk
    @reshetnyk
    hello. I have got a page. There are 1-10 paginated pages in the page. Switching between paginated pages is done using js, without requests to server. I can't get all data at once. It needs get data from every paginated page with clicking on button "next(paginated) page". can anyone help me? i can show the page in a private message. write to me pls.
    Davide De Gennaro
    @dege88
    @reshetnyk you can use an evaluate to extract the data and to change the current page
    reshetnyk
    @reshetnyk
    @dege88 Certainly. Thanks, man.
    Jorge Rosal
    @yortrosal
    Hello all, is anyone here tried using Cloud9? I'm having problem setting up electron to preview the webpage as the code runs.
    Jorge Rosal
    @yortrosal
    nevermind
    SesameChickenRice
    @SesameChickenRice
    is there a way i can have the nightmare window have my google sign in session or cookies or something so i dont get captchas or get one clicks
    SesameChickenRice
    @SesameChickenRice
    is there anyway to minimize the window
    SesameChickenRice
    @SesameChickenRice
    nevemrind
    basically i want it that it signs into gmail and maintains that session
    len_ny
    @lenny_RBLX_twitter
    how do i make a if statement in nightmare
    and i need the if statement to find something in the html code
    but ive tried .if and .evaluate(() => { if ('#error') { console.log('bad') } })
    but none of it works
    westbrma
    @westbrma
    can you pass objects with functions into evaluate?