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

markhobson/docker-maven-chrome: Docker image for Java automated UI tests.

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

开源软件名称(OpenSource Name):

markhobson/docker-maven-chrome

开源软件地址(OpenSource Url):

https://github.com/markhobson/docker-maven-chrome

开源编程语言(OpenSource Language):

Dockerfile 76.4%

开源软件介绍(OpenSource Introduction):

markhobson/maven-chrome

Docker image for Java automated UI tests.

Includes:

  • JDK 8/11/17/18
  • Maven 3.8.5
  • Chrome 104.0.5112.79
  • ChromeDriver 104.0.5112.79

Available on Docker Hub.

Tags

The following Docker tags are available:

Demo

See the demo Maven project to see how this Docker image can be used to run UI tests. To run the demo within the latest version of this image on Docker Hub:

cd demo
./run.sh

Tips

Using with Selenium

Configure Selenium to launch Chrome in headless mode:

ChromeOptions options = new ChromeOptions().setHeadless(true);
WebDriver driver = new ChromeDriver(options);

Configure Protractor to use bundled ChromeDriver

To configure Protractor to use the version of ChromeDriver bundled in this image, set chromeDriver in Protractor's conf.js file:

exports.config = {
  chromeDriver: '/usr/bin/chromedriver'
}

Chrome crashes

Chrome uses /dev/shm for runtime data which is 64MB by default under Docker. If this is not sufficient then this can cause Chrome to crash. Possible workarounds:

  • Increase the size of /dev/shm
  • Mount /dev/shm to the host's
  • Start Chrome with the flag --disable-dev-shm-usage



鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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