Skip to content

Commit 4498e5f

Browse files
committed
Correct Webdriver HTTP Client in Python examples (#2045)
[deploy site] Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com> 41b6d6b
1 parent 054d0bb commit 4498e5f

File tree

32 files changed

+162
-178
lines changed

32 files changed

+162
-178
lines changed

documentation/_print/index.html

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,14 +1261,14 @@
12611261
</span></span><span style=display:flex><span>
12621262
</span></span><span style=display:flex><span>
12631263
</span></span><span style=display:flex><span><span style=color:#5c35cc;font-weight:700>@pytest.mark.skipif</span><span style=color:#000;font-weight:700>(</span><span style=color:#000>sys</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>platform</span> <span style=color:#ce5c00;font-weight:700>==</span> <span style=color:#4e9a06>&#34;win32&#34;</span><span style=color:#000;font-weight:700>,</span> <span style=color:#000>reason</span><span style=color:#ce5c00;font-weight:700>=</span><span style=color:#4e9a06>&#34;Gets stuck on Windows, passes locally&#34;</span><span style=color:#000;font-weight:700>)</span>
1264-
</span></span><span style=display:flex><span><span style=color:#5c35cc;font-weight:700>@pytest.mark.sanity</span>
12651264
</span></span><span style=display:flex><span><span style=color:#204a87;font-weight:700>def</span> <span style=color:#000>test_start_remote_with_client_config</span><span style=color:#000;font-weight:700>(</span><span style=color:#000>grid_server</span><span style=color:#000;font-weight:700>):</span>
12661265
</span></span><span style=display:flex><span> <span style=color:#000>proxy</span> <span style=color:#ce5c00;font-weight:700>=</span> <span style=color:#000>Proxy</span><span style=color:#000;font-weight:700>({</span><span style=color:#4e9a06>&#34;proxyType&#34;</span><span style=color:#000;font-weight:700>:</span> <span style=color:#000>ProxyType</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>AUTODETECT</span><span style=color:#000;font-weight:700>})</span>
12671266
</span></span><span style=display:flex><span> <span style=color:#000>retries</span> <span style=color:#ce5c00;font-weight:700>=</span> <span style=color:#000>Retry</span><span style=color:#000;font-weight:700>(</span><span style=color:#000>connect</span><span style=color:#ce5c00;font-weight:700>=</span><span style=color:#0000cf;font-weight:700>2</span><span style=color:#000;font-weight:700>,</span> <span style=color:#000>read</span><span style=color:#ce5c00;font-weight:700>=</span><span style=color:#0000cf;font-weight:700>2</span><span style=color:#000;font-weight:700>,</span> <span style=color:#000>redirect</span><span style=color:#ce5c00;font-weight:700>=</span><span style=color:#0000cf;font-weight:700>2</span><span style=color:#000;font-weight:700>)</span>
12681267
</span></span><span style=display:flex><span> <span style=color:#000>timeout</span> <span style=color:#ce5c00;font-weight:700>=</span> <span style=color:#000>Timeout</span><span style=color:#000;font-weight:700>(</span><span style=color:#000>connect</span><span style=color:#ce5c00;font-weight:700>=</span><span style=color:#0000cf;font-weight:700>300</span><span style=color:#000;font-weight:700>,</span> <span style=color:#000>read</span><span style=color:#ce5c00;font-weight:700>=</span><span style=color:#0000cf;font-weight:700>3600</span><span style=color:#000;font-weight:700>)</span>
12691268
</span></span><span style=display:flex><span> <span style=color:#000>client_config</span> <span style=color:#ce5c00;font-weight:700>=</span> <span style=color:#000>ClientConfig</span><span style=color:#000;font-weight:700>(</span><span style=color:#000>remote_server_addr</span><span style=color:#ce5c00;font-weight:700>=</span><span style=color:#000>grid_server</span><span style=color:#000;font-weight:700>,</span>
12701269
</span></span><span style=display:flex><span> <span style=color:#000>proxy</span><span style=color:#ce5c00;font-weight:700>=</span><span style=color:#000>proxy</span><span style=color:#000;font-weight:700>,</span>
1271-
</span></span><span style=display:flex><span> <span style=color:#000>init_args_for_pool_manager</span><span style=color:#ce5c00;font-weight:700>=</span><span style=color:#000;font-weight:700>{</span><span style=color:#4e9a06>&#34;retries&#34;</span><span style=color:#000;font-weight:700>:</span> <span style=color:#000>retries</span><span style=color:#000;font-weight:700>,</span> <span style=color:#4e9a06>&#34;timeout&#34;</span><span style=color:#000;font-weight:700>:</span> <span style=color:#000>timeout</span><span style=color:#000;font-weight:700>},</span>
1270+
</span></span><span style=display:flex><span> <span style=color:#000>init_args_for_pool_manager</span><span style=color:#ce5c00;font-weight:700>=</span><span style=color:#000;font-weight:700>{</span>
1271+
</span></span><span style=display:flex><span> <span style=color:#4e9a06>&#34;init_args_for_pool_manager&#34;</span><span style=color:#000;font-weight:700>:</span> <span style=color:#000;font-weight:700>{</span><span style=color:#4e9a06>&#34;retries&#34;</span><span style=color:#000;font-weight:700>:</span> <span style=color:#000>retries</span><span style=color:#000;font-weight:700>,</span> <span style=color:#4e9a06>&#34;timeout&#34;</span><span style=color:#000;font-weight:700>:</span> <span style=color:#000>timeout</span><span style=color:#000;font-weight:700>}},</span>
12721272
</span></span><span style=display:flex><span> <span style=color:#000>ca_certs</span><span style=color:#ce5c00;font-weight:700>=</span><span style=color:#000>_get_resource_path</span><span style=color:#000;font-weight:700>(</span><span style=color:#4e9a06>&#34;tls.crt&#34;</span><span style=color:#000;font-weight:700>),</span>
12731273
</span></span><span style=display:flex><span> <span style=color:#000>username</span><span style=color:#ce5c00;font-weight:700>=</span><span style=color:#4e9a06>&#34;admin&#34;</span><span style=color:#000;font-weight:700>,</span> <span style=color:#000>password</span><span style=color:#ce5c00;font-weight:700>=</span><span style=color:#4e9a06>&#34;myStrongPassword&#34;</span><span style=color:#000;font-weight:700>)</span>
12741274
</span></span><span style=display:flex><span> <span style=color:#000>options</span> <span style=color:#ce5c00;font-weight:700>=</span> <span style=color:#000>webdriver</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>ChromeOptions</span><span style=color:#000;font-weight:700>()</span>
@@ -1278,7 +1278,6 @@
12781278
</span></span><span style=display:flex><span>
12791279
</span></span><span style=display:flex><span>
12801280
</span></span><span style=display:flex><span><span style=color:#5c35cc;font-weight:700>@pytest.mark.skipif</span><span style=color:#000;font-weight:700>(</span><span style=color:#000>sys</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>platform</span> <span style=color:#ce5c00;font-weight:700>==</span> <span style=color:#4e9a06>&#34;win32&#34;</span><span style=color:#000;font-weight:700>,</span> <span style=color:#000>reason</span><span style=color:#ce5c00;font-weight:700>=</span><span style=color:#4e9a06>&#34;Gets stuck on Windows, passes locally&#34;</span><span style=color:#000;font-weight:700>)</span>
1281-
</span></span><span style=display:flex><span><span style=color:#5c35cc;font-weight:700>@pytest.mark.sanity</span>
12821281
</span></span><span style=display:flex><span><span style=color:#204a87;font-weight:700>def</span> <span style=color:#000>test_start_remote_ignore_certs</span><span style=color:#000;font-weight:700>(</span><span style=color:#000>grid_server</span><span style=color:#000;font-weight:700>):</span>
12831282
</span></span><span style=display:flex><span> <span style=color:#000>proxy</span> <span style=color:#ce5c00;font-weight:700>=</span> <span style=color:#000>Proxy</span><span style=color:#000;font-weight:700>({</span><span style=color:#4e9a06>&#34;proxyType&#34;</span><span style=color:#000;font-weight:700>:</span> <span style=color:#000>ProxyType</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>AUTODETECT</span><span style=color:#000;font-weight:700>})</span>
12841283
</span></span><span style=display:flex><span> <span style=color:#000>client_config</span> <span style=color:#ce5c00;font-weight:700>=</span> <span style=color:#000>ClientConfig</span><span style=color:#000;font-weight:700>(</span><span style=color:#000>remote_server_addr</span><span style=color:#ce5c00;font-weight:700>=</span><span style=color:#000>grid_server</span><span style=color:#000;font-weight:700>,</span>
@@ -14070,10 +14069,10 @@
1407014069
<label><a href=https://github.com/harsha509>@harsha509</a></label>
1407114070
<span class=contributions>196 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/455056?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1407214071
<label><a href=https://github.com/hbchai>@hbchai</a></label>
14073-
<span class=contributions>191 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/4405962?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
14074-
<label><a href=https://github.com/lmtierney>@lmtierney</a></label>
14075-
<span class=contributions>179 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/16140691?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
14072+
<span class=contributions>191 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/16140691?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1407614073
<label><a href=https://github.com/joerg1985>@joerg1985</a></label>
14074+
<span class=contributions>180 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/4405962?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
14075+
<label><a href=https://github.com/lmtierney>@lmtierney</a></label>
1407714076
<span class=contributions>179 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/22616990?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1407814077
<label><a href=https://github.com/nvborisenko>@nvborisenko</a></label>
1407914078
<span class=contributions>147 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/696749?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
@@ -14106,10 +14105,10 @@
1410614105
<label><a href=https://github.com/asashour>@asashour</a></label>
1410714106
<span class=contributions>48 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/78736?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1410814107
<label><a href=https://github.com/mikemelia>@mikemelia</a></label>
14109-
<span class=contributions>46 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/87697?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
14110-
<label><a href=https://github.com/tebeka>@tebeka</a></label>
14111-
<span class=contributions>44 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/in/2740?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
14108+
<span class=contributions>46 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/in/2740?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1411214109
<label><a href=https://github.com/apps/renovate>@renovate[bot]</a></label>
14110+
<span class=contributions>45 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/87697?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
14111+
<label><a href=https://github.com/tebeka>@tebeka</a></label>
1411314112
<span class=contributions>44 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/8307266?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1411414113
<label><a href=https://github.com/raju249>@raju249</a></label>
1411514114
<span class=contributions>42 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/20105237?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
@@ -14566,10 +14565,10 @@
1456614565
<label><a href=https://github.com/sindhudiddi>@sindhudiddi</a></label>
1456714566
<span class=contributions>12 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/22616990?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1456814567
<label><a href=https://github.com/nvborisenko>@nvborisenko</a></label>
14569-
<span class=contributions>12 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/4995276?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
14570-
<label><a href=https://github.com/hiroksarker>@hiroksarker</a></label>
14571-
<span class=contributions>10 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/23253546?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
14568+
<span class=contributions>12 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/23253546?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1457214569
<label><a href=https://github.com/VietND96>@VietND96</a></label>
14570+
<span class=contributions>11 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/4995276?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
14571+
<label><a href=https://github.com/hiroksarker>@hiroksarker</a></label>
1457314572
<span class=contributions>10 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/50069278?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1457414573
<label><a href=https://github.com/nwintop>@nwintop</a></label>
1457514574
<span class=contributions>8 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/25596787?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>

0 commit comments

Comments
 (0)