You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.7 KiB
67 lines
1.7 KiB
{ |
|
"cells": [ |
|
{ |
|
"cell_type": "markdown", |
|
"id": "50dc8a3d-553b-4bfe-9641-143591a01a2f", |
|
"metadata": {}, |
|
"source": [ |
|
"Walgreens login" |
|
] |
|
}, |
|
{ |
|
"cell_type": "markdown", |
|
"id": "82fee814", |
|
"metadata": {}, |
|
"source": [ |
|
"\n", |
|
"```javascript\n", |
|
"export default async ({ page }: { page: Page }) => {\n", |
|
" const navigationPromise = page.waitForNavigation()\n", |
|
"\n", |
|
" await page.goto('https://www.walgreens.com/login')\n", |
|
"\n", |
|
" await page.setViewport({ width: 1536, height: 714 })\n", |
|
"\n", |
|
" await navigationPromise\n", |
|
"\n", |
|
"\n", |
|
" await page.type('#username', os.getenv(email))\n", |
|
" await page.type('#password', os.getenv(password))\n", |
|
"\n", |
|
" await page.waitForSelector('.card-layout > #organic-div > .login__form > .login__form_action_container > .btn__primary--large')\n", |
|
" await page.click('.card-layout > #organic-div > .login__form > .login__form_action_container > .btn__primary--large')\n", |
|
" await page.waitForNavigation()\n", |
|
" await page.screenshot({ path: screenshot })\n", |
|
"\n", |
|
"};\n", |
|
"```" |
|
] |
|
} |
|
], |
|
"metadata": { |
|
"kernelspec": { |
|
"display_name": "Python 3.10.4 64-bit", |
|
"language": "python", |
|
"name": "python3" |
|
}, |
|
"language_info": { |
|
"codemirror_mode": { |
|
"name": "ipython", |
|
"version": 3 |
|
}, |
|
"file_extension": ".py", |
|
"mimetype": "text/x-python", |
|
"name": "python", |
|
"nbconvert_exporter": "python", |
|
"pygments_lexer": "ipython3", |
|
"version": "3.10.4" |
|
}, |
|
"vscode": { |
|
"interpreter": { |
|
"hash": "31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6" |
|
} |
|
} |
|
}, |
|
"nbformat": 4, |
|
"nbformat_minor": 5 |
|
}
|
|
|