File tree Expand file tree Collapse file tree
java/test/org/openqa/selenium/bidi Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626import org .openqa .selenium .WindowType ;
2727import org .openqa .selenium .firefox .FirefoxDriver ;
2828import org .openqa .selenium .firefox .FirefoxOptions ;
29+ import org .openqa .selenium .testing .drivers .Browser ;
2930
3031class BiDiSessionCleanUpTest {
3132
3233 private FirefoxDriver driver ;
3334
3435 @ Test
3536 void shouldNotCloseBiDiSessionIfOneWindowIsClosed () {
36- FirefoxOptions options = new FirefoxOptions ();
37+ FirefoxOptions options = ( FirefoxOptions ) Browser . FIREFOX . getCapabilities ();
3738 // Enable BiDi
3839 options .setCapability ("webSocketUrl" , true );
3940
@@ -61,7 +62,7 @@ void shouldNotCloseBiDiSessionIfOneWindowIsClosed() {
6162
6263 @ Test
6364 void shouldCloseBiDiSessionIfLastWindowIsClosed () {
64- FirefoxOptions options = new FirefoxOptions ();
65+ FirefoxOptions options = ( FirefoxOptions ) Browser . FIREFOX . getCapabilities ();
6566 // Enable BiDi
6667 options .setCapability ("webSocketUrl" , true );
6768
Original file line number Diff line number Diff line change 2424import org .junit .jupiter .api .Test ;
2525import org .openqa .selenium .firefox .FirefoxDriver ;
2626import org .openqa .selenium .firefox .FirefoxOptions ;
27+ import org .openqa .selenium .testing .drivers .Browser ;
2728
2829class BiDiSessionTest {
2930
3031 private FirefoxDriver driver ;
3132
3233 @ Test
3334 void shouldBeAbleToCreateABiDiSession () {
34- FirefoxOptions options = new FirefoxOptions ();
35+ FirefoxOptions options = ( FirefoxOptions ) Browser . FIREFOX . getCapabilities ();
3536 // Enable BiDi
3637 options .setCapability ("webSocketUrl" , true );
3738
Original file line number Diff line number Diff line change 3636import org .openqa .selenium .environment .webserver .NettyAppServer ;
3737import org .openqa .selenium .firefox .FirefoxDriver ;
3838import org .openqa .selenium .firefox .FirefoxOptions ;
39+ import org .openqa .selenium .testing .drivers .Browser ;
3940
4041class BiDiTest {
4142
@@ -45,7 +46,7 @@ class BiDiTest {
4546
4647 @ BeforeEach
4748 public void setUp () {
48- FirefoxOptions options = new FirefoxOptions ();
49+ FirefoxOptions options = ( FirefoxOptions ) Browser . FIREFOX . getCapabilities ();
4950 options .setCapability ("webSocketUrl" , true );
5051
5152 driver = new FirefoxDriver (options );
You can’t perform that action at this time.
0 commit comments