Created
November 15, 2020 04:31
-
-
Save gilzonme/cae373257f16f603dea4da9ba76cae3e to your computer and use it in GitHub Desktop.
Google Search Iron Man Simple Automation Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const puppeteer = require('puppeteer'); // Install puppeteer from https://www.npmjs.com/package/puppeteer | |
(async () => { | |
const browser = await puppeteer.launch({headless:false, // `true` if you want to run in headless mode and hidden | |
defaultViewport:{ | |
width: 1080, // adjust as required | |
height: 720 // adjust as required | |
}}); | |
const page = await browser.newPage(); | |
await page.goto('https://google.com'); | |
await page.click('input[title="Search"]'); | |
await page.keyboard.type('Iron Man'); | |
await page.click('input[value="Google Search"]'); | |
// Disable terminating to avoid closing of browser after steps are done 😶 | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
isssu ----> ; verk@localhost:/etc/apt$ sudo nano souces.list
bash: nano: command not found ''please help"