-
Notifications
You must be signed in to change notification settings - Fork 165
[WIP] Facebook driver #304
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
Closed
Closed
Changes from all commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
5be40f8
moved driver to facebook/webdriver
oleg-andreyev 9921b40
fixing initial commit
oleg-andreyev 34197e2
added chrome to travis
oleg-andreyev ecd9e46
updated run-selenium.sh
oleg-andreyev 305323d
crlf to lf for bin, removed local override in phpunit.xml.dist, some …
oleg-andreyev 6666a62
adjusted travis for chrome and ff
oleg-andreyev 3a988ef
fixing
oleg-andreyev 4b97f28
fixing
oleg-andreyev ed49807
fixing
oleg-andreyev 2181be3
fixing upload & wait
oleg-andreyev d1cdddc
unskipping testWindowMaximize
oleg-andreyev e7ad036
updated phpunit.xml.dist with examples for FF, updated Selenium2Confi…
oleg-andreyev 9dcf505
downgrade firefox to 2.53.1
oleg-andreyev d84acc3
reverted "setRequestHeader", unified key actions
oleg-andreyev 77c961f
reverted tests/Custom
oleg-andreyev 25a2d90
added fix to getAttribute, added fix to setValue file-upload, fixing …
oleg-andreyev 2f2ea4f
removed accident phpunit from composer
oleg-andreyev fcbb4c4
removed charToOptions
oleg-andreyev 8afc38b
reverted spaces in composer, removed roave/security-advisories
oleg-andreyev c4f0b73
updated .travis.yml to match facebook/webdriver
oleg-andreyev 63fa6fc
added no-api
oleg-andreyev 939caf7
added prefer-dist
oleg-andreyev 4fc6729
fix
oleg-andreyev aa12542
removed bin/
oleg-andreyev b01aea6
added logs dir
oleg-andreyev ba7fad4
fixing travis build
oleg-andreyev 00cc9a8
Merge branch 'fix-master-build' into facebook-driver
oleg-andreyev bea3c59
adapted .travis.yml from facebook/php-webdriver
oleg-andreyev d705afc
returned driver specific timeouts, setTimeouts/applyTimeouts
oleg-andreyev 2d4a965
fixing setDesiredCapabilities and getWebDriverSessionId, added more t…
oleg-andreyev f584e6f
improving wait
oleg-andreyev a58f29a
improving Selenium2Config
oleg-andreyev 97c2c0b
updated build config
oleg-andreyev 643c0cc
fixing build
oleg-andreyev c2bb586
fixing build
oleg-andreyev a5fb84e
update build
oleg-andreyev d785496
removed selenium jar
oleg-andreyev b54d351
reusing mink-test-server instead of direct php build-in server, updat…
oleg-andreyev 1180e1c
removed USE_ZEND_ALLOC, added travis_retry
oleg-andreyev 839e9c8
renamed DEPENDENCIES to COMPOSER_FLAGS
oleg-andreyev 1db167c
bumped dev-master alias to 2.0.x-dev
oleg-andreyev 8a96a7f
commented WEB_FIXTURES_HOST in phpunit.xml.dist and added comment
oleg-andreyev fb7bf5c
removed typehint from Selenium2Config
oleg-andreyev e79fc7a
added test case for 7.0 with SELENIUM_DRIVER
oleg-andreyev 7d68a07
added BROWSER_NAME for SELENIUM_DRIVER, added --network=host
oleg-andreyev 77f0d98
added typehint to setTimeouts
oleg-andreyev 14ca3c6
moved "if started" check up
oleg-andreyev 390326d
removed "setWebDriver"
oleg-andreyev 127434f
added "getWebDriver" to bypass Mink API
oleg-andreyev f0351a1
changed visibility of executeJsOnXpath from protected to private
oleg-andreyev f6000fa
removed $started property in favor of isStarted, where we are checkin…
oleg-andreyev 33d7e8f
avoid override $element variable in getValue/setValue
oleg-andreyev eeeb1e1
removed comment from clickOnElement
oleg-andreyev 5510e51
removed typehint from attachFile, added correct return type to findEl…
oleg-andreyev 4ba0fe5
changed exception in resizeWindow/maximizeWindow from generic Excepti…
oleg-andreyev eddbe48
removed extra space in ensureInputType
oleg-andreyev 97827c0
removed unused method uploadFile
oleg-andreyev d964481
updated docblock to keyModifier/decodeChar
oleg-andreyev ae01600
updated docblock to `wait` method
oleg-andreyev 12209e5
updated travis.yml
oleg-andreyev c00efd4
changed implementation of focus/blur
oleg-andreyev 741cd41
return --network to docker
oleg-andreyev 0959ab8
update .travis.yml
oleg-andreyev 3bba166
dummy commit (trigger build)
oleg-andreyev 35544c1
dummy commit (trigger build)
oleg-andreyev 1bc41c1
fixing build for selenium-firefox:2.53.1
oleg-andreyev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,43 +1,80 @@ | ||
| language: php | ||
|
|
||
| sudo: false | ||
| dist: trusty | ||
|
|
||
| cache: | ||
| directories: | ||
| - $HOME/.composer/cache/files | ||
| services: | ||
| - docker | ||
|
|
||
| addons: | ||
| chrome: stable | ||
|
|
||
| php: [5.4, 5.5, 5.6, 7.0, 7.1, 7.2] | ||
| php: | ||
| - 5.6 | ||
| - 7.0 | ||
| - 7.1 | ||
| - 7.2 | ||
| - 7.3 | ||
|
|
||
| env: | ||
| global: | ||
| - WEBDRIVER=selenium | ||
| - DISPLAY=:99.0 | ||
| - BROWSER_NAME="chrome" | ||
| - DRIVER_OPTIONS='{"args":["headless", "no-sandbox","window-size=1024,768"]}' | ||
| - CHROMEDRIVER_VERSION="2.38" | ||
| - START_XVFB="0" | ||
| - SELENIUM_DRIVER="" | ||
|
|
||
| cache: | ||
| directories: | ||
| - $HOME/.composer/cache/files | ||
| - jar | ||
|
|
||
| matrix: | ||
| fast_finish: true | ||
| include: | ||
| - php: 7.0 | ||
| env: WEBDRIVER=selenium-remote | ||
| sudo: required | ||
| services: | ||
| - docker | ||
| - php: 5.3 | ||
| dist: precise | ||
| # Force using PHP 5.6 for the test server as PHP 5.3 does not have the builtin webserver | ||
| env: MINK_PHP_BIN=~/.phpenv/versions/5.6/bin/php | ||
| env: | ||
| - SELENIUM_DRIVER="2.53.1" | ||
| - BROWSER_NAME="firefox" | ||
| # XVFB with regular Chrome (not headless) | ||
| - php: 7.2 | ||
| env: | ||
| - DRIVER_OPTIONS='{"args":["no-sandbox","window-size=1024,768"]}' | ||
| - START_XVFB=1 | ||
| # build with lowest deps | ||
| - php: 7.2 | ||
| env: | ||
| - COMPOSER_FLAGS="--prefer-lowest" | ||
| # build with latest chromedriver | ||
| - php: 7.2 | ||
| env: | ||
| - CHROMEDRIVER_VERSION="latest" | ||
|
|
||
| before_script: | ||
| - sh bin/run-"$WEBDRIVER".sh | ||
|
|
||
| - composer install | ||
| install: | ||
| - travis_retry composer update --no-interaction $COMPOSER_FLAGS | ||
|
|
||
| # Start a webserver for web fixtures. | ||
| - vendor/bin/mink-test-server > /dev/null 2>&1 & | ||
| before_script: | ||
| - mkdir ./logs | ||
| - if [[ "$BROWSER_NAME" = "chrome" && "$CHROMEDRIVER_VERSION" = "latest" ]]; then CHROMEDRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`; fi | ||
| - if [ "$BROWSER_NAME" = "chrome" ]; then mkdir chromedriver; wget -q -t 3 https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip; unzip chromedriver_linux64 -d chromedriver; fi | ||
| - if [ "$START_XVFB" = "1" ]; then sh -e /etc/init.d/xvfb start; fi; | ||
| - | | ||
| if [ -z "$SELENIUM_DRIVER" ]; then | ||
| ./chromedriver/chromedriver --port=4444 --url-base=wd/hub --verbose &> ./logs/chromedriver.log & | ||
| else | ||
| docker run --rm --network=host -p 4444:4444 "selenium/standalone-firefox:$SELENIUM_DRIVER" &> ./logs/selenium.log & | ||
| fi; | ||
| - until $(echo | nc localhost 4444); do sleep 1; echo Waiting for WebDriver on port 4444...; done; echo "ChromeDriver started" | ||
| - travis_retry ./vendor/bin/mink-test-server &> ./logs/mink-test-server.log & | ||
| - until $(echo | nc localhost 8002); do sleep 1; echo waiting for PHP server on port 8002...; done; echo "PHP server started" | ||
|
|
||
| script: phpunit -v --coverage-clover=coverage.clover | ||
| script: | ||
| - phpunit -v --coverage-clover=coverage.clover | ||
|
|
||
| after_script: | ||
| - wget https://scrutinizer-ci.com/ocular.phar | ||
| - php ocular.phar code-coverage:upload --format=php-clover coverage.clover | ||
|
|
||
| after_failure: | ||
| - cat /tmp/webdriver_output.txt | ||
| - if [ -f ./logs/chromedriver.log ]; then cat ./logs/chromedriver.log; fi | ||
| - if [ -f ./logs/selenium.log ]; then cat ./logs/selenium.log; fi | ||
| - if [ -f ./logs/mink-test-server.log ]; then cat ./logs/mink-test-server.log; fi | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.