Skip to content

Commit 0f87c1c

Browse files
authored
Show Python example for setting Virtual Authenticator Options (SeleniumHQ#1407)
[deploy site]
1 parent 01d9993 commit 0f87c1c

File tree

4 files changed

+25
-20
lines changed

4 files changed

+25
-20
lines changed

website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.en.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,10 @@ These properties are mapped as VirtualAuthenticatorOptions in the Selenium bindi
3131
{{< badge-code >}}
3232
{{< /tab >}}
3333
{{< tab header="Python" >}}
34-
{{< badge-code >}}
34+
{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L40-L46" >}}
3535
{{< /tab >}}
3636
{{< tab header="JavaScript" >}}
37-
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticatorOptions.spec.js#L10-L16" >}}
38-
{{< badge-code >}}
37+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticatorOptions.spec.js#L11-L17" >}}
3938
{{< /tab >}}
4039
{{< tab header="Kotlin" >}}
4140
{{< badge-code >}}
@@ -58,7 +57,7 @@ It creates a new virtual authenticator with the provided properties.
5857
{{< badge-code >}}
5958
{{< /tab >}}
6059
{{< tab header="Python" >}}
61-
{{< badge-code >}}
60+
{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L53-L58" >}}
6261
{{< /tab >}}
6362
{{< tab header="JavaScript" >}}
6463
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L51-L55" >}}
@@ -83,7 +82,7 @@ Removes the previously added virtual authenticator.
8382
{{< badge-code >}}
8483
{{< /tab >}}
8584
{{< tab header="Python" >}}
86-
{{< badge-code >}}
85+
{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L68-L74" >}}
8786
{{< /tab >}}
8887
{{< tab header="JavaScript" >}}
8988
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L62-L63" >}}
@@ -108,10 +107,10 @@ Creates a resident (stateful) credential with the given required credential [par
108107
{{< badge-code >}}
109108
{{< /tab >}}
110109
{{< tab header="Python" >}}
111-
{{< badge-code >}}
110+
{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L80-L97" >}}
112111
{{< /tab >}}
113112
{{< tab header="JavaScript" >}}
114-
{{< badge-code >}}
113+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L80-L94" >}}
115114
{{< /tab >}}
116115
{{< tab header="Kotlin" >}}
117116
{{< badge-code >}}

website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.ja.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ These properties are mapped as VirtualAuthenticatorOptions in the Selenium bindi
4040
{{< badge-code >}}
4141
{{< /tab >}}
4242
{{< tab header="Python" >}}
43-
{{< badge-code >}}
43+
{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L40-L46" >}}
4444
{{< /tab >}}
4545
{{< tab header="JavaScript" >}}
46-
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticatorOptions.spec.js#L10-L16" >}}
46+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticatorOptions.spec.js#L11-L17" >}}
4747
{{< /tab >}}
4848
{{< tab header="Kotlin" >}}
4949
{{< badge-code >}}
@@ -65,7 +65,7 @@ It creates a new virtual authenticator with the provided properties.
6565
{{< badge-code >}}
6666
{{< /tab >}}
6767
{{< tab header="Python" >}}
68-
{{< badge-code >}}
68+
{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L53-L58" >}}
6969
{{< /tab >}}
7070
{{< tab header="JavaScript" >}}
7171
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L51-L55" >}}
@@ -89,7 +89,7 @@ Removes the previously added virtual authenticator.
8989
{{< badge-code >}}
9090
{{< /tab >}}
9191
{{< tab header="Python" >}}
92-
{{< badge-code >}}
92+
{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L68-L74" >}}
9393
{{< /tab >}}
9494
{{< tab header="JavaScript" >}}
9595
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L62-L63" >}}
@@ -113,9 +113,10 @@ Creates a resident (stateful) credential with the given required credential [par
113113
{{< badge-code >}}
114114
{{< /tab >}}
115115
{{< tab header="Python" >}}
116-
{{< badge-code >}}
116+
{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L80-L97" >}}
117117
{{< /tab >}}
118118
{{< tab header="JavaScript" >}}
119+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L80-L94" >}}
119120
{{< /tab >}}
120121
{{< tab header="Kotlin" >}}
121122
{{< badge-code >}}

website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.pt-br.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ Essas propriedades são mapeadas como VirtualAuthenticatorOptions nos bindings d
2828
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/VirtualAuthenticatorTest.cs#L48-55" >}}
2929
{{< /tab >}}
3030
{{< tab header="Ruby" >}}
31-
31+
{{< badge-code >}}
3232
{{< /tab >}}
3333
{{< tab header="Python" >}}
34+
{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L40-L46" >}}
3435
{{< /tab >}}
3536
{{< tab header="JavaScript" >}}
36-
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticatorOptions.spec.js#L10-L16" >}}
37+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticatorOptions.spec.js#L11-L17" >}}
3738
{{< /tab >}}
3839
{{< tab header="Kotlin" >}}
3940
{{< badge-code >}}
@@ -55,6 +56,7 @@ Cria um novo autenticador virtual com as propriedades fornecidas.
5556
{{< badge-code >}}
5657
{{< /tab >}}
5758
{{< tab header="Python" >}}
59+
{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L53-L58" >}}
5860
{{< /tab >}}
5961
{{< tab header="JavaScript" >}}
6062
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L51-L55" >}}
@@ -78,6 +80,7 @@ Remove o autenticador virtual adicionado anteriormente.
7880
{{< badge-code >}}
7981
{{< /tab >}}
8082
{{< tab header="Python" >}}
83+
{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L68-L74" >}}
8184
{{< /tab >}}
8285
{{< tab header="JavaScript" >}}
8386
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L62-L63" >}}
@@ -101,9 +104,10 @@ Cria uma resident (stateful) credential com os requeridos [parâmetros](https://
101104
{{< badge-code >}}
102105
{{< /tab >}}
103106
{{< tab header="Python" >}}
104-
{{< badge-code >}}
107+
{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L80-L97" >}}
105108
{{< /tab >}}
106109
{{< tab header="JavaScript" >}}
110+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L80-L94" >}}
107111
{{< /tab >}}
108112
{{< tab header="Kotlin" >}}
109113
{{< badge-code >}}

website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.zh-cn.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ Web 应用程序可以启用基于公钥的身份验证机制(称为 Web 身
3131
{{< badge-code >}}
3232
{{< /tab >}}
3333
{{< tab header="Python" >}}
34-
{{< badge-code >}}
34+
{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L40-L46" >}}
3535
{{< /tab >}}
3636
{{< tab header="JavaScript" >}}
37-
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticatorOptions.spec.js#L10-L16" >}}
37+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticatorOptions.spec.js#L11-L17" >}}
3838
{{< /tab >}}
3939
{{< tab header="Kotlin" >}}
4040
{{< badge-code >}}
@@ -56,7 +56,7 @@ Web 应用程序可以启用基于公钥的身份验证机制(称为 Web 身
5656
{{< badge-code >}}
5757
{{< /tab >}}
5858
{{< tab header="Python" >}}
59-
{{< badge-code >}}
59+
{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L53-L58" >}}
6060
{{< /tab >}}
6161
{{< tab header="JavaScript" >}}
6262
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L51-L55" >}}
@@ -80,7 +80,7 @@ Web 应用程序可以启用基于公钥的身份验证机制(称为 Web 身
8080
{{< badge-code >}}
8181
{{< /tab >}}
8282
{{< tab header="Python" >}}
83-
{{< badge-code >}}
83+
{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L68-L74" >}}
8484
{{< /tab >}}
8585
{{< tab header="JavaScript" >}}
8686
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L62-L63" >}}
@@ -104,9 +104,10 @@ Web 应用程序可以启用基于公钥的身份验证机制(称为 Web 身
104104
{{< badge-code >}}
105105
{{< /tab >}}
106106
{{< tab header="Python" >}}
107-
{{< badge-code >}}
107+
{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L80-L97" >}}
108108
{{< /tab >}}
109109
{{< tab header="JavaScript" >}}
110+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L80-L94" >}}
110111
{{< /tab >}}
111112
{{< tab header="Kotlin" >}}
112113
{{< badge-code >}}

0 commit comments

Comments
 (0)