File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
java/test/org/openqa/selenium/bidi Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 26
26
import org .openqa .selenium .WindowType ;
27
27
import org .openqa .selenium .firefox .FirefoxDriver ;
28
28
import org .openqa .selenium .firefox .FirefoxOptions ;
29
+ import org .openqa .selenium .testing .drivers .Browser ;
29
30
30
31
class BiDiSessionCleanUpTest {
31
32
32
33
private FirefoxDriver driver ;
33
34
34
35
@ Test
35
36
void shouldNotCloseBiDiSessionIfOneWindowIsClosed () {
36
- FirefoxOptions options = new FirefoxOptions ();
37
+ FirefoxOptions options = ( FirefoxOptions ) Browser . FIREFOX . getCapabilities ();
37
38
// Enable BiDi
38
39
options .setCapability ("webSocketUrl" , true );
39
40
@@ -61,7 +62,7 @@ void shouldNotCloseBiDiSessionIfOneWindowIsClosed() {
61
62
62
63
@ Test
63
64
void shouldCloseBiDiSessionIfLastWindowIsClosed () {
64
- FirefoxOptions options = new FirefoxOptions ();
65
+ FirefoxOptions options = ( FirefoxOptions ) Browser . FIREFOX . getCapabilities ();
65
66
// Enable BiDi
66
67
options .setCapability ("webSocketUrl" , true );
67
68
Original file line number Diff line number Diff line change 24
24
import org .junit .jupiter .api .Test ;
25
25
import org .openqa .selenium .firefox .FirefoxDriver ;
26
26
import org .openqa .selenium .firefox .FirefoxOptions ;
27
+ import org .openqa .selenium .testing .drivers .Browser ;
27
28
28
29
class BiDiSessionTest {
29
30
30
31
private FirefoxDriver driver ;
31
32
32
33
@ Test
33
34
void shouldBeAbleToCreateABiDiSession () {
34
- FirefoxOptions options = new FirefoxOptions ();
35
+ FirefoxOptions options = ( FirefoxOptions ) Browser . FIREFOX . getCapabilities ();
35
36
// Enable BiDi
36
37
options .setCapability ("webSocketUrl" , true );
37
38
Original file line number Diff line number Diff line change 36
36
import org .openqa .selenium .environment .webserver .NettyAppServer ;
37
37
import org .openqa .selenium .firefox .FirefoxDriver ;
38
38
import org .openqa .selenium .firefox .FirefoxOptions ;
39
+ import org .openqa .selenium .testing .drivers .Browser ;
39
40
40
41
class BiDiTest {
41
42
@@ -45,7 +46,7 @@ class BiDiTest {
45
46
46
47
@ BeforeEach
47
48
public void setUp () {
48
- FirefoxOptions options = new FirefoxOptions ();
49
+ FirefoxOptions options = ( FirefoxOptions ) Browser . FIREFOX . getCapabilities ();
49
50
options .setCapability ("webSocketUrl" , true );
50
51
51
52
driver = new FirefoxDriver (options );
You can’t perform that action at this time.
0 commit comments