Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createAdditionalPantherClient() with Firefox driver not working #597

Open
yedprior opened this issue Jun 13, 2023 · 1 comment
Open

createAdditionalPantherClient() with Firefox driver not working #597

yedprior opened this issue Jun 13, 2023 · 1 comment

Comments

@yedprior
Copy link

yedprior commented Jun 13, 2023

Opening secondary client when createPantherClient use firefox driver send
"Facebook\WebDriver\Exception\SessionNotCreatedException: Session is already started" exception when
$client2->request('GET', '/chat');
is called in this example :

$client1 = self::createPantherClient(['browser' => static::FIREFOX]);
$client1->request('GET', '/chat'); 

// Connect a 2nd user using an isolated browser and say hi!
$client2 = self::createAdditionalPantherClient();
$client2->request('GET', '/chat');
$client2->submitForm('Post message', ['message' => 'Hi folks 👋😻']);

// Wait for the message to be received by the first client
$client1->waitFor('.message');

// Symfony Assertions are always executed in the **primary** browser
$this->assertSelectorTextContains('.message', 'Hi folks 👋😻');

It works fine with chrome driver (open 2 windows with navigator).

@halfer
Copy link
Contributor

halfer commented Oct 3, 2023

I suspect this is by design:

mozilla/geckodriver#1946

@OskarStark OskarStark changed the title createAdditionalPantherClient() with firefox driver not working. createAdditionalPantherClient() with Firefox driver not working Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants