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

Research if Selenium IDE HTML files could be converted to JS #1798

Closed
jykae opened this issue Oct 21, 2016 · 10 comments
Closed

Research if Selenium IDE HTML files could be converted to JS #1798

jykae opened this issue Oct 21, 2016 · 10 comments

Comments

@jykae
Copy link
Contributor

jykae commented Oct 21, 2016

Would save lots of time if we could generate tests with Selenium IDE and output tests as JavaScript.

This one uses sync-wd to run tests and has conversion functions to output JS:
https://www.npmjs.com/package/selenium-html-js-converter

Also look if there are other options for conversion if above one doesn't work

@jykae
Copy link
Contributor Author

jykae commented Oct 26, 2016

Testing conversion for @Nazarah 's anonymous user tests in apinf-testing repo

@jykae
Copy link
Contributor Author

jykae commented Oct 26, 2016

Converted successfully, running with Phantom is really fast, so would need to add some waits explicitly. Takes also nice screenshot on test failure point 8-)

@jykae
Copy link
Contributor Author

jykae commented Oct 26, 2016

@Nazarah your yesterday's Selenium IDE clicks in generated JS.
nayttokuva 2016-10-26 kello 11 34 57

@jykae
Copy link
Contributor Author

jykae commented Oct 26, 2016

HTML files don't have info about usage of implicitWait, I'll try if I can add it somehow for generated JS.

EDIT: added manually browser.setImplicitWaitTimeout(5000); to generated JS test case.

@jykae
Copy link
Contributor Author

jykae commented Oct 26, 2016

Reported issue for author:
flyingfisher/selenium-html-js-converter#14
and a question:
flyingfisher/selenium-html-js-converter#15

@jykae
Copy link
Contributor Author

jykae commented Oct 26, 2016

Issue with setWindowSize, flyingfisher/selenium-html-js-converter#16

Defaults to very narrow window, cannot find Catalogue link as it's collapsed.

Screenshot taken by PhantomJS when exception happens:
exception click

@jykae jykae added the blocked label Oct 26, 2016
@jykae
Copy link
Contributor Author

jykae commented Oct 26, 2016

setWindowSize would need solution, otherwise great package. Putting this on hold.

@jykae
Copy link
Contributor Author

jykae commented Oct 27, 2016

Got answer from author @flyingfisher but unfortunately package is not maintained, just possible bugs are fixed.

@bajiat bajiat closed this as completed Nov 3, 2016
@bajiat bajiat removed the blocked label Nov 3, 2016
@FirassKoubaa
Copy link

any possible solutions ?

@jykae
Copy link
Contributor Author

jykae commented Mar 23, 2017

@FirassKoubaa FYI window resizing was our only problem with the package, looks like reported possible bug is now commented, tested & closed flyingfisher/selenium-html-js-converter#16 (comment)

I am no longer in this project, @bajiat maybe Apinf-team would like to try if it works out now, and used parameter format (missing comma) was just wrong like commented in the issue.

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

No branches or pull requests

3 participants