使用python使用IE运行Selenium测试 [英] Running Selenium tests with IE using python
问题描述
安装页面此处说要将selenium服务器独立jar添加到CLASSPATH。罐子做什么?我需要它吗?我已经运行了一些selenium代码,它没有它。我刚刚实例化了IE
The installation page here says to add the selenium server standalone jar to the CLASSPATH. What does the jar do? Do I need it? I ran some selenium code already and it works without it. I just instantiated IE doing
driver = driver.Ie()
我在Python中运行webdriver(selenium 2),试图测试IE9(然后在测试IE8之后)。 (我不使用.NET,只运行.py文件)谢谢!
I am running webdriver (selenium 2) in Python, trying to test IE9 (and then after test IE8). (I'm not using .NET, just running a .py file) Thanks!
推荐答案
那是你需要的罐子与Selenium 1一起运行。据我所知,硒2没有必要。它可以在进行远程测试时使用(我没有使用Selenium 2),但本地测试肯定不需要它。
That was the jar you needed to run with "Selenium 1". It is not necessary with Selenium 2 as far as I know. It may be used when doing remote testing (I haven't done that with Selenium 2), but it is definitely not needed for local testing.
这篇关于使用python使用IE运行Selenium测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!