Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ everywhere:

``` python
page = await cdp.new_page()
await page.goto('https://httpbin.org/forms/post')
await page.goto('https://fast-http-bin.pla.sh/forms/post')
```

You can `wait_for` any js expression to be truthy, and have it returned:
Expand All @@ -93,7 +93,7 @@ You can `wait_for` any js expression to be truthy, and have it returned:
await page.wait_for('document.title')
```

'6. httpbin.org/forms/post'
'6. fast-http-bin.pla.sh/forms/post'

Take a screenshot of the page:

Expand Down Expand Up @@ -122,7 +122,7 @@ new page:

``` python
page = await Page.new()
await page.goto('https://httpbin.org/forms/post')
await page.goto('https://fast-http-bin.pla.sh/forms/post')
```

For finding elements to interact with, use `ax_tree`:
Expand All @@ -132,7 +132,7 @@ root = await page.ax_tree()
print(str(root)[:300])
```

- **RootWebArea** "6. httpbin.org/forms/post" `focusable=True` `focused=True` `url=https://httpbin.org/forms/post` [#2]
- **RootWebArea** "6. fast-http-bin.pla.sh/forms/post" `focusable=True` `focused=True` `url=https://fast-http-bin.pla.sh/forms/post` [#2]
- **LabelText** "" [#24]
- **StaticText** "Customer name: " [#64]
- **InlineTextBox** "Customer name: "
Expand Down
16 changes: 8 additions & 8 deletions nbs/00_core.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@
"sid = await cdp.attach(t)\n",
"page = await cdp.page.enable(sid=sid)\n",
"\n",
"await cdp.page.navigate(sid=sid, url='https://httpbin.org/forms/post')\n",
"await cdp.page.navigate(sid=sid, url='https://fast-http-bin.pla.sh/forms/post')\n",
"await cdp.wait_for_selector('form', sid)"
]
},
Expand Down Expand Up @@ -671,7 +671,7 @@
],
"source": [
"page = await cdp.new_page()\n",
"await page.page.navigate(url='https://httpbin.org/forms/post')\n",
"await page.page.navigate(url='https://fast-http-bin.pla.sh/forms/post')\n",
"await page.wait_for_selector('form')"
]
},
Expand Down Expand Up @@ -771,7 +771,7 @@
"outputs": [],
"source": [
"page = await Page.new(cdp=cdp)\n",
"await page.goto('https://httpbin.org/forms/post')"
"await page.goto('https://fast-http-bin.pla.sh/forms/post')"
]
},
{
Expand Down Expand Up @@ -867,7 +867,7 @@
],
"source": [
"page = await cdp.new_page()\n",
"await page.goto('https://httpbin.org/forms/post')\n",
"await page.goto('https://fast-http-bin.pla.sh/forms/post')\n",
"await page.eval('document.title')"
]
},
Expand Down Expand Up @@ -917,7 +917,7 @@
" 'value': {'type': 'booleanOrUndefined', 'value': True}},\n",
" {'name': 'focused', 'value': {'type': 'booleanOrUndefined', 'value': True}},\n",
" {'name': 'url',\n",
" 'value': {'type': 'string', 'value': 'https://httpbin.org/forms/post'}}],\n",
" 'value': {'type': 'string', 'value': 'https://fast-http-bin.pla.sh/forms/post'}}],\n",
" 'childIds': ['71'],\n",
" 'backendDOMNodeId': 69,\n",
" 'frameId': '523C62BB46692DDED9606FB1D00591B0'}"
Expand Down Expand Up @@ -1031,7 +1031,7 @@
"outputs": [],
"source": [
"page = await cdp.new_page()\n",
"await page.goto('https://httpbin.org/forms/post')"
"await page.goto('https://fast-http-bin.pla.sh/forms/post')"
]
},
{
Expand All @@ -1045,7 +1045,7 @@
"text/markdown": [
"<div class=\"prose\">\n",
"\n",
"- **RootWebArea** \"\" `focusable=True` `url=https://httpbin.org/forms/post` [#68]\n",
"- **RootWebArea** \"\" `focusable=True` `url=https://fast-http-bin.pla.sh/forms/post` [#68]\n",
" - **LabelText** \"\" [#75]\n",
" - **StaticText** \"Customer name: \" [#37]\n",
" - **textbox** \"Customer name: \" `focusable=True` `editable=plaintext` `settable=True` [#36]\n",
Expand Down Expand Up @@ -1089,7 +1089,7 @@
"</div>"
],
"text/plain": [
"- **RootWebArea** \"\" `focusable=True` `url=https://httpbin.org/forms/post` [#68]\n",
"- **RootWebArea** \"\" `focusable=True` `url=https://fast-http-bin.pla.sh/forms/post` [#68]\n",
" - **LabelText** \"\" [#75]\n",
" - **StaticText** \"Customer name: \" [#37]\n",
" - **textbox** \"Customer name: \" `focusable=True` `editable=plaintext` `settable=True` [#36]\n",
Expand Down
8 changes: 4 additions & 4 deletions nbs/index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
"outputs": [],
"source": [
"page = await cdp.new_page()\n",
"await page.goto('https://httpbin.org/forms/post')"
"await page.goto('https://fast-http-bin.pla.sh/forms/post')"
]
},
{
Expand All @@ -228,7 +228,7 @@
{
"data": {
"text/plain": [
"'6. httpbin.org/forms/post'"
"'6. fast-http-bin.pla.sh/forms/post'"
]
},
"execution_count": null,
Expand Down Expand Up @@ -309,7 +309,7 @@
"outputs": [],
"source": [
"page = await Page.new()\n",
"await page.goto('https://httpbin.org/forms/post')"
"await page.goto('https://fast-http-bin.pla.sh/forms/post')"
]
},
{
Expand All @@ -330,7 +330,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"- **RootWebArea** \"6. httpbin.org/forms/post\" `focusable=True` `focused=True` `url=https://httpbin.org/forms/post` [#2]\n",
"- **RootWebArea** \"6. fast-http-bin.pla.sh/forms/post\" `focusable=True` `focused=True` `url=https://fast-http-bin.pla.sh/forms/post` [#2]\n",
" - **LabelText** \"\" [#24]\n",
" - **StaticText** \"Customer name: \" [#64]\n",
" - **InlineTextBox** \"Customer name: \"\n",
Expand Down