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
| touch drivers | |
| mv home/chromedriver drivers | |
| chmod 777 drivers/chromedriver |
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
| var x = new ToolTipData(); | |
| action | |
| .MoveToCell(this.Elem) | |
| .FindElement(xPath, x) | |
| .Build() | |
| .Perform(); | |
| //var wait = new WebDriverWait(this.Driver, new TimeSpan(0, 0, 2)); |
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
| > chromedriver --version | |
| ChromeDriver 81.0.4044.69 (6813546031a4bc83f717a2ef7cd4ac6ec1199132-refs/branch-heads/4044@{#776}) |
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
| protected static WebElement getElement(By locator) { | |
| try { | |
| WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(Constants.MAX_WAIT_SECONDS_EXPLICIT)); | |
| wait.until(ExpectedConditions.visibilityOfElementLocated(locator)); | |
| } catch (Exception tex) { | |
| logOutput("FAIL", tex.getMessage()); | |
| } | |
| if (!driver.findElements(locator).isEmpty()) { | |
| return driver.findElements(locator).get(0); |
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
| [adam@box infra]$ date && kubectl scale deployment selenium-node-chrome --replicas=3 | |
| śro, 20 maj 2020, 16:10:16 CEST | |
| deployment.apps/selenium-node-chrome scaled | |
| [adam@box infra]$ date && kubectl get pods | grep selenium | |
| śro, 20 maj 2020, 16:10:31 CEST | |
| selenium-hub-9cbc59c95-gtkr2 1/1 Running 0 64s | |
| selenium-node-chrome-79479f4b4f-glqp4 1/1 Running 0 42s | |
| selenium-node-chrome-79479f4b4f-grvdz 1/1 Running 0 42s | |
| selenium-node-chrome-79479f4b4f-ncmfg 1/1 Running 0 42s``` | |
| and in hub logs: |
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
| [8:38 AM] # | |
| # This docker-compose configuration runs tests against stage or prod depending on target | |
| # | |
| version: '3' | |
| networks: | |
| piq_customer_ui: | |
| driver: bridge |
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
| var config = require('./base.conf.js').config; | |
| config.seleniumAddress = '<http://selenium-hub:4444>'; | |
| config.capabilities = { | |
| 'browserName': 'chrome', | |
| 'goog:chromeOptions': { | |
| 'args': ["--start-maximized", "--silent", "--log-level=3"], | |
| 'prefs': { | |
| 'download': { | |
| 'prompt_for_download': false, |
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
| volumes: | |
| - /tmp/videos:/home/seluser/videos | |
| - /var/run/docker.sock:/var/run/docker.sock | |
| - /usr/bin/docker:/usr/bin/docker | |
| - /tmp/downloads:/home/seluser/downloads |
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
| SE_OPTS=-"acceptInsecureCerts"=true |
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
| [0;36mConnecting to seleniumhost on port 443... | |
| [0m | |
| [1;31m POST <https://seleniumhost:443> /wd/hub/session - UNABLE_TO_GET_ISSUER_CERT | |
| Error: unable to get issuer certificate | |
| at TLSSocket.onConnectSecure (_tls_wrap.js:1474:34) | |
| at TLSSocket._finishInit (_tls_wrap.js:917:8) | |
| at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:687:12)[0m | |
| â [0;31mError connecting to seleniumhost on port 443.[0m |