TestProject Forum

Unable to run testcases from testproject SDK Python

After generating testcase from testproject platform in python. I am getting below error:

/usr/lib/python2.7/dist-packages/_pytest/python.py:403: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
/usr/lib/python2.7/dist-packages/py/_path/local.py:668: in pyimport
init.py:1: in
from .chrome import Chrome
E File “/home/ubuntu/.local/lib/python3.6/site-packages/src/testproject/sdk/drivers/webdriver/chrome.py”, line 36
E chrome_options: ChromeOptions = None,
E ^
E SyntaxError: invalid syntax

Hello @ssgupta0912
Seems like you have python 2.7
The SDK Requires Python 3.6 or greater.

1 Like

Yes… That worked for me.
Thanks a lot