Getting errors during playback - cannot find the edit button.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Getting errors during playback - cannot find the edit button.
Need help with editing this: Object Aliases.browser.pageQaregTtxrdmComSx200AngappAng.buttonEdit
to the following:
Edit button - Results of inspect element:
<button id="btn_edit_3" type="button" class="btn btn-primary btn-xs ng-binding ng-scope" ng-click="grid.appScope.editItemClick(row.entity.id)" ng-if="grid.appScope.isUser">Edit</button>
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The object is mapped in some way... it has an Alias. So, the inspection you have posted doesn't really help in figuring out your problem. That is simply how the HTML is written for the button. What we need is a screenshot showing the object identification criteria in NameMapping for the button in question.
Additionally, the problem could be not with the button itself but with timing. If you are performing an action on the page that causes something to load where the button is not available immediately, you may need to add additional code or steps to wait an appropriate amount of time for the button to become available.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So,what I'm seeing is an edit button that is in a cell in a table, is that correct?
Notice that it is mapped with a idStr of "btn_edit_2" while the information you posted before shows it as btn_edit_3. So, what this tells me is that there are multiple edit buttons on the screen (and you can see it in the NameMapping image capture). Each one is identified differently.
You will need to work on a strategy of some sort to determine the best way to identify which edit button you want to work with. Since it is a button in a cell in a table that may have variable length, I would honestly not map the buttons themselves. I'd do a mapping of the table and then use some sort of code to dynamically select the row and column in the table and reference the button from there.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes the edit button is a cell within a table created in angular, which is causing so many errors during playback. We have many levels within these tables, so each time the table is rendered, the cells change.
Would adding Xpath expressions be the best route for this?
