selenium

Easiest way to run Selenium tests in a Docker container over Jenkins CI

你。 提交于 2021-02-18 07:28:51
问题 I want to execute my automated tests, written in Nightwatch-Cucumber over a Jenkins CI in a Docker container. I have a Docker image that I want to use for it. This is what I want to do in more detail. Start tests over Jenkins CI job On the same machine the Docker image is loaded and the related Docker container will start. This container based on a Unix OS. Also, some configuration in Docker container will be executed. Tests will be executed (from local or remote) in a headless mode via xvfb

C#/ASP.NET Selenium WebDriver - Re-using Cookies

若如初见. 提交于 2021-02-18 07:00:07
问题 I want to: Login to a website Save Cookies Give user a choice to do A, B or C A,B and C all require being logged in. Each will open a FirefoxDriver and do their own thing What i want to do, is login ONCE , save the cookies from that, and add them to any other FirefoxDriver i want to open. Right now I'm trying to save the cookies in public ReadOnlyCollection<Cookie> Cookies { get; set; } which is the result of WebDriver.Manage().Cookies.AllCookies; Assuming login worked and cookies were saving

Selenium IDE - exporting test scripts

江枫思渺然 提交于 2021-02-18 06:55:33
问题 I'm trying to export my test automation created in Selenium IDE, but I can't find the option to export. I have a few test scenarios where the tests are the same but I need to make a copy of an existing test and swap some IDs for it to work. I can only save it as a .side file and not as individual Python scripts for Selenium. I'd like to export an existing script and re import it into Selenium IDE as a copy (where I can make some changes, while keeping the majority of the commands the same).

「Selenium」- Can not connect to the Service /path/to/chromedriver @20210217

爷,独闯天下 提交于 2021-02-17 22:35:59
问题描述 # python3.7 /tmp/demo.py Traceback (most recent call last): File "/tmp/demo.py", line 4, in <module> driver = webdriver.Chrome('/srv/sharing/packages/chromedriver_linux64/chromedriver') # Optional argument, if not specified will search path. File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__ self.service.start() File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/common/service.py", line 104, in start raise WebDriverException("Can not connect to the Service %s" % self.path) selenium.common.exceptions.WebDriverException:

Docker: using container with headless Selenium Chromedriver

♀尐吖头ヾ 提交于 2021-02-17 20:57:14
问题 I'm trying to link peroumal1's "docker-chrome-selenium" container to another container with scraping code that uses Selenium. He exposes his container to port 4444 (the default for Selenium), but I'm having trouble accessing it from my scraper container. Here's my docker-compose file: chromedriver: image: eperoumalnaik/docker-chrome-selenium:latest scraper: build: . command: python manage.py scrapy crawl general_course_content volumes: - .:/code ports: - "8000:8000" links: - chromedriver and

Docker: using container with headless Selenium Chromedriver

喜你入骨 提交于 2021-02-17 20:56:39
问题 I'm trying to link peroumal1's "docker-chrome-selenium" container to another container with scraping code that uses Selenium. He exposes his container to port 4444 (the default for Selenium), but I'm having trouble accessing it from my scraper container. Here's my docker-compose file: chromedriver: image: eperoumalnaik/docker-chrome-selenium:latest scraper: build: . command: python manage.py scrapy crawl general_course_content volumes: - .:/code ports: - "8000:8000" links: - chromedriver and

Docker: using container with headless Selenium Chromedriver

随声附和 提交于 2021-02-17 20:56:37
问题 I'm trying to link peroumal1's "docker-chrome-selenium" container to another container with scraping code that uses Selenium. He exposes his container to port 4444 (the default for Selenium), but I'm having trouble accessing it from my scraper container. Here's my docker-compose file: chromedriver: image: eperoumalnaik/docker-chrome-selenium:latest scraper: build: . command: python manage.py scrapy crawl general_course_content volumes: - .:/code ports: - "8000:8000" links: - chromedriver and

Selenium: Element not clickable … Other Element Would Receive Click

泪湿孤枕 提交于 2021-02-17 18:57:09
问题 When running Selenium tests on my Django project, I've started to get the error: selenium.common.exceptions.WebDriverException: Message: Element is not clickable at point (61, 24.300003051757812). Other element would receive the click: <a class="navbar-brand" href="#"></a> It is odd for two reasons: First, the tests previously passed and I have not edited that part of the code base. Second, when the Selenium-driven Firefox Window pops up and I maximize the page, the tests pass. But when I let

什么是测试驱动开发及其重要性

你。 提交于 2021-02-17 13:50:45
顾翔老师的《软件测试技术实战设计、工具及管理》网上购买地址: https://item.jd.com/34295655089.html 《基于Django的电子商务网站》网上购买地址: https://item.jd.com/12082665.html 店铺二维码: 来源: https://www.maiyewang.com/ 测试是任何软件开发项目中最重要的步骤之一。如果跳过此过程,则结果可能是灾难性的-对项目和公司而言。但是什么时候应该对软件进行测试?在项目完成后进行测试似乎是合乎逻辑的。但是,经典测试过程的功能是有限的。如果您先编写代码,然后再测试实现,则可能会遇到一些问题,即过度研发,设计偏离,可测试性问题。幸运的是,有一种方法可以应对这些挑战,它被称为–测试驱动开发。 什么是TDD或测试驱动开发? TDD是测试驱动开发的缩写,它指的是设计范例,其中软件组件测试用于指导整个开发过程。要了解TDD的工作原理,首先,最好定义其重要概念之一-单元测试。 什么是软件单元测试?   单元测试 是一种将代码分解成小的独立单元的方法。 单元测试的主要目的是独立评估每个组件的行为,以验证它们是否正常运行。 单元测试通常由开发人员执行,但也可以由质量经理执行。 一些软件开发人员认为单元测试是浪费时间,但是实践表明情况恰恰相反。   在系统测试, 集成测试 和Beta测试阶段,

No keyword with name '${body}= Create Dictionary' found

放肆的年华 提交于 2021-02-17 07:16:19
问题 *** settings *** Library RequestsLibrary Library Collections Library OperatingSystem Library SeleniumLibrary *** Variables *** ${username} XXXXXX ${password} YYYYYY ${locale} ZZZZ *** test cases *** TC1 ${body}= Create Dictionary username= ${username} password= ${password} ${header}= Create Dictionary Accept=application/json, text/plain, */* Content-Type=application/json, Accept-Language=${locale}, Create Session OA2 ${base_url} ${response}= post request OA2 /oauth/v2/token data= ${body}