sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #12997
Re: [Question #202820]: Selenium in sikuli
Question #202820 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/202820
Irina posted a new comment:
When I import selenium it's enogh do as you decsribe above:
selDir = "C:\\Python27\\Lib\\site-packages\\selenium"
if not selDir in sys.path:
sys.path.append(selDir)
from selenium import selenium
Selenium working, but when I try to import driver it has a lot of modules to import:
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import NoSuchElementException
So may be I haven't correct sys.path?
it can import webdriver and stop at this line:
from selenium import webdriver
Message from Sikuli:
[error] Stopped
[error] An error occurs at line 4
[error] Error message: Traceback (most recent call last):
File "C:\Users\Irina\AppData\Local\Temp\sikuli-tmp1797026541086595355.py", line 4, in
from selenium import webdriver
File "D:\Sikuli11\qmee_driver.sikuli\selenium\webdriver\__init__.py", line 18, in
from firefox.webdriver import WebDriver as Firefox
File "D:\Sikuli11\qmee_driver.sikuli\selenium\webdriver\firefox\webdriver.py", line 26, in
from selenium.webdriver.firefox.firefox_profile import FirefoxProfile
File "D:\Sikuli11\qmee_driver.sikuli\selenium\webdriver\firefox\firefox_profile.py", line 27, in
from selenium.webdriver.common.proxy import ProxyType
File "D:\Sikuli11\qmee_driver.sikuli\selenium\webdriver\common\proxy.py", line 17, in
class Proxy(object):
File "D:\Sikuli11\qmee_driver.sikuli\selenium\webdriver\common\proxy.py", line 48, in Proxy
@proxy_type.setter
AttributeError: 'property' object has no
attribute 'setter'
Thanks a lot for help
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.