Closed frankcollins3 closed 1 year ago
const browser = await puppeteer.launch({headless: false}) -> {bool: !str} [8:01pm]
puppeteer in action: .launch( { headless: false } ) negates the headless default to provide a visual of the execution of automated scripts
such executions could include page navigation and full-page screen-shots like this code would demonstrate:
[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]
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"
[8:10pm]
browser output showing resolved promise![Screen Shot 2023-05-13 at 7 51 02 PM](https://github.com/frankcollins3/PHPokedex/assets/73137934/469bbea2-0436-49f2-903a-8d1b99f16c11)