frankcollins3 / PHPokedex

react concepts
0 stars 0 forks source link

puppeteer {headless: false} isn't generating web interface browser [7:50pm] #48

Closed frankcollins3 closed 1 year ago

frankcollins3 commented 1 year ago

Screen Shot 2023-05-13 at 7 49 21 PM

browser output showing resolved promise Screen Shot 2023-05-13 at 7 51 02 PM

frankcollins3 commented 1 year ago

const browser = await puppeteer.launch({headless: false}) -> {bool: !str} [8:01pm]

frankcollins3 commented 1 year ago

puppeteer in action: .launch( { headless: false } ) negates the headless default to provide a visual of the execution of automated scripts

Screen Shot 2023-05-13 at 8 02 11 PM

Screen Shot 2023-05-13 at 8 02 05 PM

such executions could include page navigation and full-page screen-shots like this code would demonstrate: Screen Shot 2023-05-13 at 8 05 19 PM

[8:06pm]

note that the resolve:() => in that code is the GraphQL resolve function in the RootQueryType. The Promise I use is a Promise.all() that doesn't take resolve and reject as params

[8:06pm]

frankcollins3 commented 1 year ago

a successful execution of {headless: false} should display the browser being used for the automated task. It will even open up its own "chrome for testing"

Screen Shot 2023-05-13 at 8 02 51 PM

Screen Shot 2023-05-13 at 8 02 11 PM

[8:10pm]