首页 新闻 会员 周边

selenium server 导入包出错了,

0
[已关闭问题] 关闭于 2017-03-28 10:44
from selenium import selenium

启动了selenium server 但运行例子时出错,就导入这句:

Unresolved reference'selenium'

按教程写的怎么会错了。

http://www.seleniumhq.org/docs/05_selenium_rc.jsp#python

 

下的是selenium-server-standalone-3.3.1.jar + python3.5

还没有的主页 还没有 | 小虾三级 | 园豆:531
提问于:2017-03-26 12:16
< >
分享
所有回答(1)
0

from selenium import webdriver

ycyzharry | 园豆:25653 (高人七级) | 2017-03-27 13:25

 我要用的是selenium rc

支持(0) 反对(0) 还没有 | 园豆:531 (小虾三级) | 2017-03-27 13:35

@还没有:

from selenium import selenium
import unittest

引用的包这样就可以了

你这明显是python版本问题,试试2.5版本。

其他参考http://www.cnblogs.com/oscarxie/archive/2008/07/20/1247004.html 

支持(0) 反对(0) ycyzharry | 园豆:25653 (高人七级) | 2017-03-27 13:45
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册