To start npm start
1. Node.js installed. 2. Express wi-fi by Facebook coverage in your local area. 2. Login to Express wifi app first before executing the script. v16.10.0
Express wi-fi gives 100mb data pack by watching ads of 30-35 seconds. So, I have to watch 35second ad and after watching that ad, I got only 100mb. I just automate this task using the power of
javascript&selenium
- It opens the new 4 chrome windows parallel
- Enters the URL
- Wait for page to load
- Then it finds the button which shows the advertise and clicks it.
- Wait for 40seconds till advertisement video finish
- Exit the browser
- Find a way to wait until the button loads properly in the DOM.