11const assert = require ( "assert" ) ;
22const firefox = require ( 'selenium-webdriver/firefox' ) ;
3- const { BrowsingContext, Builder} = require ( "selenium-webdriver" ) ;
3+ const { BrowsingContext, ScriptManager , Builder} = require ( "selenium-webdriver" ) ;
44const { Locator} = require ( "selenium-webdriver/bidi/browsingContext" ) ;
5- const { LocalValue} = require ( "selenium-webdriver/bidi/protocolValue" ) ;
5+ const { LocalValue, ReferenceValue } = require ( "selenium-webdriver/bidi/protocolValue" ) ;
66const { ArgumentValue} = require ( "selenium-webdriver/bidi/argumentValue" ) ;
7+ const { EvaluateResultType} = require ( "selenium-webdriver/bidi/evaluateResult" ) ;
78
89describe ( 'Locate Nodes' , function ( ) {
910 let driver
@@ -19,7 +20,7 @@ describe('Locate Nodes', function () {
1920 await driver . quit ( )
2021 } )
2122
22- xit ( 'can locate nodes' , async function ( ) {
23+ it ( 'can locate nodes' , async function ( ) {
2324 const id = await driver . getWindowHandle ( )
2425 const browsingContext = await BrowsingContext ( driver , {
2526 browsingContextId : id ,
@@ -31,7 +32,7 @@ describe('Locate Nodes', function () {
3132 assert . strictEqual ( element . length , 13 )
3233 } )
3334
34- xit ( 'can locate node' , async function ( ) {
35+ it ( 'can locate node' , async function ( ) {
3536 const id = await driver . getWindowHandle ( )
3637 const browsingContext = await BrowsingContext ( driver , {
3738 browsingContextId : id ,
@@ -43,7 +44,7 @@ describe('Locate Nodes', function () {
4344 assert . strictEqual ( element . type , 'node' )
4445 } )
4546
46- xit ( 'can locate node with css locator' , async function ( ) {
47+ it ( 'can locate node with css locator' , async function ( ) {
4748 const id = await driver . getWindowHandle ( )
4849 const browsingContext = await BrowsingContext ( driver , {
4950 browsingContextId : id ,
@@ -60,7 +61,7 @@ describe('Locate Nodes', function () {
6061 assert . notEqual ( element . sharedId , undefined )
6162 } )
6263
63- xit ( 'can locate node with xpath locator' , async function ( ) {
64+ it ( 'can locate node with xpath locator' , async function ( ) {
6465 const id = await driver . getWindowHandle ( )
6566 const browsingContext = await BrowsingContext ( driver , {
6667 browsingContextId : id ,
@@ -94,7 +95,7 @@ describe('Locate Nodes', function () {
9495 assert . notEqual ( element . sharedId , undefined )
9596 } )
9697
97- xit ( 'can locate node with max node count' , async function ( ) {
98+ it ( 'can locate node with max node count' , async function ( ) {
9899 const id = await driver . getWindowHandle ( )
99100 const browsingContext = await BrowsingContext ( driver , {
100101 browsingContextId : id ,
@@ -106,7 +107,7 @@ describe('Locate Nodes', function () {
106107 assert . strictEqual ( elements . length , 4 )
107108 } )
108109
109- xit ( 'can locate node with none ownership value' , async function ( ) {
110+ it ( 'can locate node with none ownership value' , async function ( ) {
110111 const id = await driver . getWindowHandle ( )
111112 const browsingContext = await BrowsingContext ( driver , {
112113 browsingContextId : id ,
@@ -132,13 +133,13 @@ describe('Locate Nodes', function () {
132133 assert . notEqual ( elements [ 0 ] . handle , null )
133134 } )
134135
135- xit ( 'can locate node with given start nodes' , async function ( ) {
136+ it ( 'can locate node with given start nodes' , async function ( ) {
136137 const id = await driver . getWindowHandle ( )
137138 const browsingContext = await BrowsingContext ( driver , {
138139 browsingContextId : id ,
139140 } )
140141
141- await driver . get ( Pages . formPage )
142+ await driver . get ( 'https://www.selenium.dev/selenium/web/ formPage.html' )
142143
143144 const script = await ScriptManager ( id , driver )
144145
@@ -170,7 +171,7 @@ describe('Locate Nodes', function () {
170171 startNodes ,
171172 )
172173
173- assert . strictEqual ( elements . length , 35 )
174+ assert . strictEqual ( elements . length , 37 )
174175 } )
175176
176177 xit ( 'can locate nodes in a given sandbox' , async function ( ) {
@@ -212,7 +213,7 @@ describe('Locate Nodes', function () {
212213 assert . strictEqual ( sharedId . value , nodeId )
213214 } )
214215
215- xit ( 'can find element' , async function ( ) {
216+ it ( 'can find element' , async function ( ) {
216217 const id = await driver . getWindowHandle ( )
217218 const browsingContext = await BrowsingContext ( driver , {
218219 browsingContextId : id ,
@@ -225,7 +226,7 @@ describe('Locate Nodes', function () {
225226 assert . strictEqual ( elementText , 'Open new window' )
226227 } )
227228
228- xit ( 'can find elements' , async function ( ) {
229+ it ( 'can find elements' , async function ( ) {
229230 const id = await driver . getWindowHandle ( )
230231 const browsingContext = await BrowsingContext ( driver , {
231232 browsingContextId : id ,
0 commit comments