使用Robot Framework和Selenium2Library在代理服务器后面测试应用程序 [英] Test an application behind a proxy server using Robot Framework and Selenium2Library

查看:125
本文介绍了使用Robot Framework和Selenium2Library在代理服务器后面测试应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Robot Framework和Selenium2Library在代理服务器后面测试Web应用程序.实际上,当在浏览器连接设置中启用代理时,关键字打开浏览器"失败

I'm testing a web application behind a proxy server using both Robot Framework and Selenium2Library. In fact when the proxy is enabled in browser connexion setting , the keywords "Open browser" failed

当我禁用代理服务器选项时,浏览器窗口将打开,但我无法访问该应用程序.

when I disabled the Proxy server option , the browser windows is getting opened but i am not able to visit the application.

两个IE en ff驱动程序都会发生这种情况.

This happen with both IE en ff driver.

我想知道是否还有其他配置可以解决此问题?

I want to know if there is any additional configuration to solve this problem?

推荐答案

Selenium2Library文档提供了使用

The Selenium2Library documentation gives an example of using a proxy using the Create Webdriver keyword:

| | # use proxy for Firefox         
| | ${proxy}=            | Evaluate     | sys.modules['selenium.webdriver'].Proxy() | sys, selenium.webdriver
| | ${proxy.http_proxy}= | Set Variable | localhost:8888    
| | Create Webdriver     | Firefox      | proxy=${proxy}    

这篇关于使用Robot Framework和Selenium2Library在代理服务器后面测试应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆