Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
Replies
6 replies
Answers
1 answer
Subscribers
11 subscribers
Views
6426 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
I am writing Automation Test Scripts for Appian Screens using Selenium and Cucum
farnazy
over 9 years ago
I am writing Automation Test Scripts for Appian Screens using Selenium and Cucumber. In the Screens, there are components like Date Field, Radio Button, Check boxes. Facing Issues to find a unique identifier for these components.Tried using Id, ClassName, XPath, but it didn’t work.Issue is that when the Appian screen is developed, the components do not have any identifier unlike JSP pages. These components when rendered on a browser, it converts to html.When html didn’t find any identifier, it creates a new identifier each time. So the identifier is not constant. ClassName is same for all the similar components. XPath is not uniquely traversing to the component. Consider a Radio Button which has Yes and No as an Option HTML Code : <div class="GG51K-MDGB"><div class="aui_FieldLayout_InputContainer"><div class="aui-RadioButtonGroup"><span class="gwt-RadioButto...
OriginalPostID-144422
OriginalPostID-144422
Discussion posts and replies are publicly visible
Parents
0
Conor Cahill
Certified Lead Developer
over 9 years ago
Using the xpath you can select nth element with position(). As long as your forms are always ordered the same way (or are predictable in all of their changes), then you should still be able to find them with xpath.
Cancel
Vote Up
-1
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Conor Cahill
Certified Lead Developer
over 9 years ago
Using the xpath you can select nth element with position(). As long as your forms are always ordered the same way (or are predictable in all of their changes), then you should still be able to find them with xpath.
Cancel
Vote Up
-1
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data