File tree Expand file tree Collapse file tree 5 files changed +54
-8
lines changed
examples/javascript/test/selenium_manager
website_and_docs/content/documentation Expand file tree Collapse file tree 5 files changed +54
-8
lines changed Original file line number Diff line number Diff line change
1
+ const Chrome = require ( 'selenium-webdriver/chrome' ) ;
2
+ const { Browser, Builder} = require ( "selenium-webdriver" ) ;
3
+ const { getBinaryPaths} = require ( "selenium-webdriver/common/driverFinder" ) ;
4
+ const options = new Chrome . Options ( ) ;
5
+
6
+ describe ( 'Usage Test' , function ( ) {
7
+ it ( 'After Selenium Manager' , async function ( ) {
8
+
9
+ let driver = new Builder ( )
10
+ . forBrowser ( Browser . CHROME )
11
+ . build ( ) ;
12
+
13
+ await driver . get ( 'https://www.selenium.dev/selenium/web/blank.html' ) ;
14
+ await driver . quit ( ) ;
15
+ } ) ;
16
+
17
+ it ( 'Before Selenium Manager' , async function ( ) {
18
+ let paths = getBinaryPaths ( options )
19
+ let driverPath = paths . driverPath ;
20
+ let browserPath = paths . browserPath ;
21
+
22
+ options . setChromeBinaryPath ( browserPath )
23
+
24
+ let service = new Chrome . ServiceBuilder ( ) . setPath ( driverPath )
25
+
26
+ let driver = new Builder ( )
27
+ . forBrowser ( Browser . CHROME )
28
+ . setChromeService ( service )
29
+ . build ( ) ;
30
+
31
+ await driver . get ( 'https://www.selenium.dev/selenium/web/blank.html' ) ;
32
+ await driver . quit ( ) ;
33
+ } ) ;
34
+ } ) ;
Original file line number Diff line number Diff line change @@ -227,8 +227,11 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c
227
227
{{< tab header="Ruby" >}}
228
228
{{< badge-code >}}
229
229
{{< /tab >}}
230
- {{< tab header="JavaScript" >}}
231
- {{< badge-code >}}
230
+ {{% tab header="JavaScript" %}}
231
+ ** Previously**
232
+ {{< gh-codeblock path="examples/javascript/test/selenium_manager/usage.spec.js#L17-L33" >}}
233
+ ** Selenium Manager**
234
+ {{< gh-codeblock path="examples/javascript/test/selenium_manager/usage.spec.js#L7-L15" >}}
232
235
{{< /tab >}}
233
236
{{< tab header="Kotlin" >}}
234
237
{{< badge-code >}}
Original file line number Diff line number Diff line change @@ -227,8 +227,11 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c
227
227
{{< tab header="Ruby" >}}
228
228
{{< badge-code >}}
229
229
{{< /tab >}}
230
- {{< tab header="JavaScript" >}}
231
- {{< badge-code >}}
230
+ {{% tab header="JavaScript" %}}
231
+ ** Previously**
232
+ {{< gh-codeblock path="examples/javascript/test/selenium_manager/usage.spec.js#L17-L33" >}}
233
+ ** Selenium Manager**
234
+ {{< gh-codeblock path="examples/javascript/test/selenium_manager/usage.spec.js#L7-L15" >}}
232
235
{{< /tab >}}
233
236
{{< tab header="Kotlin" >}}
234
237
{{< badge-code >}}
Original file line number Diff line number Diff line change @@ -227,8 +227,11 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c
227
227
{{< tab header="Ruby" >}}
228
228
{{< badge-code >}}
229
229
{{< /tab >}}
230
- {{< tab header="JavaScript" >}}
231
- {{< badge-code >}}
230
+ {{% tab header="JavaScript" %}}
231
+ ** Previously**
232
+ {{< gh-codeblock path="examples/javascript/test/selenium_manager/usage.spec.js#L17-L33" >}}
233
+ ** Selenium Manager**
234
+ {{< gh-codeblock path="examples/javascript/test/selenium_manager/usage.spec.js#L7-L15" >}}
232
235
{{< /tab >}}
233
236
{{< tab header="Kotlin" >}}
234
237
{{< badge-code >}}
Original file line number Diff line number Diff line change @@ -227,8 +227,11 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c
227
227
{{< tab header="Ruby" >}}
228
228
{{< badge-code >}}
229
229
{{< /tab >}}
230
- {{< tab header="JavaScript" >}}
231
- {{< badge-code >}}
230
+ {{% tab header="JavaScript" %}}
231
+ ** Previously**
232
+ {{< gh-codeblock path="examples/javascript/test/selenium_manager/usage.spec.js#L17-L33" >}}
233
+ ** Selenium Manager**
234
+ {{< gh-codeblock path="examples/javascript/test/selenium_manager/usage.spec.js#L7-L15" >}}
232
235
{{< /tab >}}
233
236
{{< tab header="Kotlin" >}}
234
237
{{< badge-code >}}
You can’t perform that action at this time.
0 commit comments