• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Codeception/SeleniumEnv: Docker image with Selenium, Xvfb, Firefox, and Chromium ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

Codeception/SeleniumEnv

开源软件地址:

https://github.com/Codeception/SeleniumEnv

开源编程语言:

Shell 100.0%

开源软件介绍:

SeleniumEnv

This is a Docker Image with Selenium Server, Xvfb, Firefox and Chromium installed. SeleniumEnv was created to run Selenium tests without installing Selenium and its dependencies. Selenium server is executed inside a container and connected from a host machine.

Installation

Grab prepacked image from a Docker Hub

docker pull davert/selenium-env

Or build image by yourself. Just clone this repo and run

docker build -t selenium-env .

you should edit Dockerfile in order to customize version of Selenium Server.

Usage

SeleniumEnv is able to connect to local or remote web sites.

Accessing Remote Website

Run the container and bind it to default Selenium port 4444

docker run -i -t -p 4444:4444 davert/selenium-env 

Accessing Local Website by Port

In case you want to access local website from container you can do the following: if application is run on localhost (0.0.0.0) on a specific port, you can pass APP_PORT environment variable into it:

php -S 0.0.0.0:8000 & 
docker run -i -t -p 4444:4444 -e APP_PORT=8000 davert/selenium-env 

Accessing Local Website by Host

In case local web site is served by nginx or Apache, and is configured for a specific host, you can pass host name as environment variable:

docker run -i -t -p 4444:4444 -e APP_HOST=myapp davert/selenium-env 



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
clowwindy/firefox-ios: Forked from发布时间:2022-06-08
下一篇:
ferjm/firefoxos-hackme: Firefox OS app bootstrap发布时间:2022-06-08
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap