Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page objects with extended Selenium2Library #7

Open
gaurav517 opened this issue May 10, 2017 · 3 comments
Open

Page objects with extended Selenium2Library #7

gaurav517 opened this issue May 10, 2017 · 3 comments

Comments

@gaurav517
Copy link

You use following to share instance of selenium2library: BuiltIn().get_library_instance("Selenium2Library")

Now in my case, I extend Selenium2Library to MySelenium2Library class in python.. with some additional functions in MySelenium2Library class.
Is it possible to share the instance of MySelenium2Library?

Any clue how we can achieve page objects with custom: MySelenium2Library. Thanks a lot.

@boakley
Copy link
Owner

boakley commented May 10, 2017 via email

@stevof
Copy link

stevof commented Nov 20, 2017

@boakley - I'd like to use ExtendedSelenium2Library instead of Selenium2Library. I tried your suggestion to create my own base class that redefines se2lib, but I just cannot get that to work. I'm new to python, and I'm not sure what I'm doing wrong. Could you provide a concrete example of how to do this?

@boakley
Copy link
Owner

boakley commented Nov 20, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants