Selenium Python bindings & PyDev - 'Unresolved import'

1,609 views
Skip to first unread message

Tomster

unread,
Jul 22, 2011, 6:29:00 PM7/22/11
to Selenium Users
I've installed the selenium python package and can successfully
execute 'from selenium..' statements in the Python interpreter, but in
Eclipse/Pydev edit window, a 'from selenium import webdriver'
statement provokes an 'Unresolved import: webdriver' error from Pydev.
I've added the selenium package to the list of PyDev-PYTHONPATH
'External Libraries' (which resolved an unresolved import error for
selenium library), but that isn't picking up webdriver that's
contained within that. I tried adding webdriver explicitly as well,
but it didn't get rid of the error.

I'm relatively new to this environment and wonder if anyone is using a
simlar one and can identify a solution or workaround.

Baiju M

unread,
Jul 22, 2011, 11:39:14 PM7/22/11
to seleniu...@googlegroups.com

Tomster

unread,
Jul 25, 2011, 8:54:55 PM7/25/11
to Selenium Users
Thanks, I tried the suggestions, but none of that is working for me. I
was able to get the Pydev error to go away while editing, but then it
complains at runtime (and as I've continued to try things, the
unresolved error is back). Again, none of these errors occur if I am
outside of the Pydev environment.

Is there a way to see where Pydev is looking for things?

On Jul 22, 8:39 pm, Baiju M <baiju.m.m...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages