How to get text from an element:
const element = await page.$('.some-class');
const text = await page.evaluate(element => element.textContent, element);
// or
const text = await page.evaluate(element => element.innerText, element);
How to get text from an element:
const element = await page.$('.some-class');
const text = await page.evaluate(element => element.textContent, element);
// or
const text = await page.evaluate(element => element.innerText, element);
<a href="whatsapp://send?text=Hello World!&phone=+9198********1">Message me on WhatsApp</a> |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
So you've cloned somebody's repo from github, but now you want to fork it and contribute back.
Technically, when you fork "origin" should be your fork and "upstream" should be the project you forked; however, if you're willing to break this convention then it's easy.