-
-
Notifications
You must be signed in to change notification settings - Fork 236
Selenium #15
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
Selenium #15
Conversation
dunglas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add some (functional?) tests please?
| use Facebook\WebDriver\Remote\RemoteWebDriver; | ||
| use Facebook\WebDriver\WebDriver; | ||
| use \Facebook\WebDriver\WebDriverCapabilities; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra line to remove
| use Facebook\WebDriver\Remote\DesiredCapabilities; | ||
| use Facebook\WebDriver\Remote\RemoteWebDriver; | ||
| use Facebook\WebDriver\WebDriver; | ||
| use \Facebook\WebDriver\WebDriverCapabilities; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The initial backslack must also be removed
dunglas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but can you run PHP CS Fixer to fix the CS please?
| use PHPUnit\Framework\TestCase; | ||
|
|
||
| /** | ||
| * @author Kévin Dunglas <dunglas@gmail.com> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be changed I guess!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It defines the copyright, not the author! You can update this line safely, PHP CS Fixer will not complain.
|
ci passed |
dunglas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last minor change then 👍
| private $host; | ||
| private $capabilities; | ||
|
|
||
| public function __construct(?string $host = null, ?WebDriverCapabilities $capabilities = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be string $host = self::DEFAULT_HOST IIRC.
|
|
||
| final class SeleniumManager implements BrowserManagerInterface | ||
| { | ||
| private const DEFAULT_HOST = 'http://127.0.0.1:4444/wd/hub'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not even sure we need this constant, can be the default value in the constructor directly.
|
all fixed :) |
src/ProcessManager/ChromeManager.php
Outdated
| } | ||
|
|
||
| private function getDefaultArguments(): array | ||
| public function getDefaultArguments(): array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change? If it is just for https://github.com/dunglas/panthere/pull/15/files#diff-0b7a157b54171e8b04337166e6da76d3R47, it is not worth it, just copy them.
|
Thank you very much @coraxster! You you mind updating the readme to explain how to use Selenium? |
|
Thank you for help :) |
* Selenium manager * Selenium manager create method * fix cs * simple test * fix selenium manager test * fix travis ci test, fix cs * fix cs * fix cs, refactor constructor * fix constructor * fix test
* Selenium manager * Selenium manager create method * fix cs * simple test * fix selenium manager test * fix travis ci test, fix cs * fix cs * fix cs, refactor constructor * fix constructor * fix test
add support for selenium(also selenium grid)