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

Forcing sideex to use something else but not id of an element while recording? #18

Open
shahidcodes opened this issue May 13, 2018 · 1 comment

Comments

@shahidcodes
Copy link

shahidcodes commented May 13, 2018

I've a spa (webix) which uses dynamic id by default. That means it changes everytime I refresh so recorded test wont work next time. Is there any way to force sideex to use custom attribute or xpath for selection of element?
Looking at the code I found this recorder-handlers.js#L39 but it looks like it is for form submission.

@NagendraKuppala
Copy link

Hi, I'm fellow Sideex user.
I'm also facing same issue.
I think it will be great if we can loop the target values to find the element instead of using just one target value.
Current scenario : Executing the command line with only selected/shown target value. If the ID dynamically changes every time test case executed, results in test case failed.
Proposed scenario: Execute the command line with all the available target values of an element (ID, name, link, css, xpath) to make sure the element is not present in the webpage before test case fails.
Check for ID (If fails) -> check for NAME (if pass) --> then execute the command line with working target value.

Let me know if you have any findings. Thanks

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

2 participants