Analyze if Selenium session connection is established.
Definition at line 17 of file SeleniumSessionAnalyzer.php.
◆ __construct()
__construct |
( |
ObjectManagerInterface |
$objectManager | ) |
|
◆ configure()
Configure command.
- Returns
- void
Definition at line 40 of file SeleniumSessionAnalyzer.php.
43 $this->setName(
'troubleshooting:check-selenium-session-connection')
44 ->setDescription(
'Check that Selenium session connection is established.');
◆ execute()
execute |
( |
InputInterface |
$input, |
|
|
OutputInterface |
$output |
|
) |
| |
|
protected |
Execute command.
- Parameters
-
InputInterface | $input | |
OutputInterface | $output | |
- Returns
- void @SuppressWarnings(PHPMD.UnusedFormalParameter)
Definition at line 55 of file SeleniumSessionAnalyzer.php.
57 $output = $this->objectManager->create(
61 $output->writeln(
"Verifying selenium server session...");
63 $driver = $this->objectManager->create(Driver::class);
64 $driver->closeWindow();
65 }
catch (\Exception $e) {
66 $output->outputMessages([
'error' =>
68 'The Selenium Server session cannot be established. Check if:' 69 . PHP_EOL .
"\tSelenium server is launched." 70 . PHP_EOL .
"\tSelenium server host and port configuration are correct in etc/config.xml." 71 . PHP_EOL .
"\tThere is a valid browser name in etc/config.xml." 72 . PHP_EOL .
"\tSelenium server is run with appropriate driver." 73 . PHP_EOL .
"\tSelenium server version is compatible with web browser version." 77 $output->writeln(
'Verification of selenium server session is finished.');
The documentation for this class was generated from the following file: