Comments (4)
from robotframework-pageobjectlibrary.
This worked for me (tested only on Python 3.6.4):
Comment out the following line in setup.py:
execfile('PageObjectLibrary/version.py')
and replace with the below.
exec(open('PageObjectLibrary/version.py').read())
if you need setup.py to be compatible with both 2.x and 3.x, add the following to setup.py (tested only on Python 3.6.4):
# N.B. to push a new version to PyPi, update the version number
# in rfhub/version.py and then run 'python setup.py sdist upload'
import sys
from setuptools import setup
if sys.version_info[0] > 2:
exec(open('PageObjectLibrary/version.py').read())
else:
execfile('PageObjectLibrary/version.py')
setup(
name = 'robotframework-pageobjectlibrary',
version = __version__,
author = 'Bryan Oakley',
author_email = '[email protected]',
url = 'https://github.com/boakley/robotframework-pageobjectlibrary/',
keywords = 'robotframework',
license = 'Apache License 2.0',
description = 'RobotFramework library that implements the Page Object pattern',
long_description = open('README.md', encoding='latin-1').read(),
zip_safe = True,
include_package_data = True,
install_requires = ['robotframework', 'robotframework-selenium2library', 'selenium', 'six'],
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Framework :: Robot Framework",
"Programming Language :: Python",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Quality Assurance",
"Intended Audience :: Developers",
],
packages =[
'PageObjectLibrary',
],
scripts =[],
)
from robotframework-pageobjectlibrary.
Does not work for python 3.7.1
`Installing robotframework-pageobjectlibrary…
Collecting robotframework-pageobjectlibrary
Downloading https://files.pythonhosted.org/packages/88/21/fa58016bae1a0bbe693ed745d188ef3b01c75ad3b575c9b7cd540522da07/robotframework-pageobjectlibrary-0.1.7.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\kumanz\AppData\Local\Temp\pip-install-dcv_diio\robotframework-pageobjectlibrary\setup.py", line 5, in
execfile('PageObjectLibrary/version.py')
NameError: name 'execfile' is not defined
----------------------------------------
Error: An error occurred while installing robotframework-pageobjectlibrary!
Command "python setup.py egg_info" failed with error code 1 in C:\Users\kumanz\AppData\Local\Temp\pip-install-dcv_diio\robotframework-pageobjectlibrary`
from robotframework-pageobjectlibrary.
@itsanjan, the corrected "setup.py" is in a fork by @andrewordiales. You can manually add the changes I suggested, or go to @andrewordiales Github page: Fork
from robotframework-pageobjectlibrary.
Related Issues (19)
- First Feedback HOT 2
- Updates for new versions of SeleniumLibrary HOT 1
- Dynamic elements in locators? HOT 2
- Error while importing module six
- Failed when keyword conflicts in two files HOT 3
- Problem with setting library search order
- Localization Support
- Webdriver didn't get website with document.readyState == 'complete' HOT 3
- Init method of user class execute few times
- wait_for_page_refresh, "timeout" parameter not taken into account by the wait_for_condition function
- Need to implement Inheritance using PageObject library HOT 4
- User defined inheritance using Page Object Library HOT 1
- Argument check probably wrong
- Page Object and robotframework-browser (playwright)?
- Could this package be used with other test-framework HOT 5
- Test Setup broken HOT 5
- Page objects with extended Selenium2Library HOT 3
- How to do when lots of page objects are in different directories? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robotframework-pageobjectlibrary.