selenium-grid

selenium.common.exceptions.InvalidCookieDomainException: Message: invalid cookie domain while executing tests in Django with Selenium

流过昼夜 提交于 2020-07-13 15:03:03
问题 I am setting up tests for both chrome and firefox using seleniumgrid.I am using docker images selenium-hub and selenium node-chrome and node-firefox as below. app: build: . command: gunicorn --reload --capture-output --log-level debug --access-logfile - -w 3 -b 0.0.0.0 app.wsgi restart: always volumes_from: - initialize ports: - "8000:8000" links: - db - rabbitmq - selenium_hub env_file: secrets.env volumes: - ./app/:/code/ selenium_hub: image: selenium/hub ports: - 4444:4444 expose: - 4444

org.openqa.selenium.remote.ProtocolHandshake createSession INFORMATION: Attempting bi-dialect session with Selenium Grid

醉酒当歌 提交于 2020-03-22 09:29:31
问题 I set up a local selenium grid to test something. The build runs normal when connecting to another grid but when using the local grid the build just stops at this point: ------------------------------------------------------- T E S T S ------------------------------------------------------- Running xxx.xxxxxxxxxxxx.xxx.xxxxxxxxxxx.XXXXXXXXXXXX Sep 17, 2018 3:13:49 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFORMATION: Attempting bi-dialect session, assuming Postel's Law

selecting an element with css selector python

喜欢而已 提交于 2020-03-22 09:23:28
问题 I am trying to select an element in selenium using python and need some help with css selector. Here is the HTML code: <div class="grid x5" id="grid"> <div style="opacity: 1;"><span class="box" style="z-index:92"></span>8</div><div style="opacity: 1;"><span class="box" style="z-index:77"></span>23</div><div style="opacity: 1;"><span class="box" style="z-index:93"></span>7</div><div style="opacity: 1;"><span class="box" style="z-index:99"></span>1</div><div style="opacity: 1;"><span class="box

Integrate Selenium Grid and Sikuli API

一笑奈何 提交于 2020-01-23 09:48:25
问题 Currently, I am working on the automation testing framework, which combines with both Selenium Grid and Sikuli API. I already implemented a library which includes functionality of Selenium and Sikuli, and it works well when I set up my hub and node on the same machine. However, this is just the same as running Selenium RC on the machine. So, in order to achieve parallel testing, my next step is to launch the nodes from other machines and register them to the hub machine. The idea environment

Difference between timeout and browserTimeout

与世无争的帅哥 提交于 2020-01-23 00:42:58
问题 I just started using Selenium Grid. The current problem I'm facing is when a test crashes. The browser stays open forever until I arrive and close it myself so the next set of tests can start. I noticed that the NODE configuration has two timeout configurations, one for -timeout and another for -browserTimeout For the -timeout , it says the browser will be "released" for another test. For -browserTimeout , it simply doesn't say anything. I don't understand what it meant by "released". What I

Difference between timeout and browserTimeout

假装没事ソ 提交于 2020-01-23 00:42:13
问题 I just started using Selenium Grid. The current problem I'm facing is when a test crashes. The browser stays open forever until I arrive and close it myself so the next set of tests can start. I noticed that the NODE configuration has two timeout configurations, one for -timeout and another for -browserTimeout For the -timeout , it says the browser will be "released" for another test. For -browserTimeout , it simply doesn't say anything. I don't understand what it meant by "released". What I

ChromeDriver ERR_SSL_PROTOCOL_ERROR despite --ignore-certificate-errors

为君一笑 提交于 2020-01-19 12:44:25
问题 I'm trying to run integration tests on a local host (with no HTTPS) using selenium with ChromeDriver. Chrome requires an https certificate, but from this question i understand that i can circumvent this using the arg --ignore-certificate-errors I have also added to my capabilities acceptInsecureCerts , as this seems like the appropriate course of action (docs) The response from the chromedriver is still not what I was expecting: This site can’t provide a secure connection app sent an invalid

Tests fail immediately with unknown error: DevToolsActivePort file doesn't exist when running Selenium grid through systemd

佐手、 提交于 2020-01-18 10:58:09
问题 I've been trying to change the way I start the Selenium grid service from a shell script in .rclocal to a systemd service, but it is not working. The script is this: #!/bin/bash java -jar /opt/selenium-server-standalone.jar -role hub -hubConfig hubconfig.json xvfb-run --server-args="-screen 0 2048x1536x24" java -jar /opt/selenium-server-standalone.jar -role node -nodeConfig nodeconfig.json I created two different services as follows: (Stackoverflow won't let me put the contents of the

Tests fail immediately with unknown error: DevToolsActivePort file doesn't exist when running Selenium grid through systemd

萝らか妹 提交于 2020-01-18 10:51:27
问题 I've been trying to change the way I start the Selenium grid service from a shell script in .rclocal to a systemd service, but it is not working. The script is this: #!/bin/bash java -jar /opt/selenium-server-standalone.jar -role hub -hubConfig hubconfig.json xvfb-run --server-args="-screen 0 2048x1536x24" java -jar /opt/selenium-server-standalone.jar -role node -nodeConfig nodeconfig.json I created two different services as follows: (Stackoverflow won't let me put the contents of the

Exception "Was passed main parameter 'webdriver' but no main parameter was defined Error while creating note

妖精的绣舞 提交于 2020-01-15 07:00:09
问题 I have gone through the video deeply and tried it but I am struck, please help. 1) I tried the code but i getting error of: org.openqa.selenium.SessionNotCreatedException: Unable to create new service: EdgeDriverService Errors Image So then later I found that there is a change to create a node for this error so i tried to create node by : java -Dwebdriver.edge.driver=C:\MicrosoftWebDriver.exe -jar C:\selenium-server-standalone-3.8.1.jar -role node webdriver -hub http://10.144.102.48:4444/grid