Please help identify the answer with explanation.
The correct answer is A
Because the Title has been made generic and Will work Smoothly
Title is stable
because app is automatically generated selector and stable.
App will be constant in all the cases where as the Title will be changed based on the upgrades and some criteria. Idx and CSS are not good to consider in the selectors because they always keep on changing
What if their using different app like edge?
Option A is the correct one.
If we give app it will be chrome or edge so it is not correct one.
Css selectors change for every time so we can’t take it.
Idx will change max of times it’s not the stable one
Then last is title the title will not change for any activity selector.
That’s why we pick the Title attribute as stable one.
Hope it helps!!
Answer is Option D
Because,As shown in the picture,App is a stable selector.The remaining will change depending on the website/application the title will change .
idx and css-selector will change with respective to the UI element .
Hope it helps!!
Read the question properly, “the web application is known to change the layout and order of elements”
So option B and option C is not the right answer as they keep on changing
Option D i.e app will change if it is indicated to different browser like edge , chrome etc
So the option A i.e. Title is stable attribute since they have used Development environment, if they are trying to automate then the link will always stay same that is Acme Website
Hope this helps you !
Every attribute has an assigned value. It is important to pick attributes with a constant value. If the value of an attribute changes each time the app is started, then the selector will not be able to correctly identify the element.
So the correct answer is D.
For more details check this:
D is the only stable part
idx - can change any time
CSS - will change whenever a new element or some new change comes up
Title - contains Development env details
The answer is D. App won’t change. That’s what they mean by stable.
Title will change when you aren’t in the development environment.
Css-selector is a terribly unstable selector as it easily changes.
idx is also terribly unstable because it changes often with even the slightest change on the page.
Title will change when it’s run in production.
App won’t change unless the developer intentionally chooses to open a different browser. The answer is D-App.
Title will change when they run it in the production environment. App cannot change unless the developer changes it to run in a different browser.
Okay got it @postwick
Thank you Paul for make me to choose correct option.
Thank you for your response, @postwick. I appreciate your input. Can you please enlighten me with an example?
or can u send me some links/docs for me to refer
It would be a great help for me
Thank you in advance
I’m not sure what you mean by examples. Look at the title attribute. It says ‘ACME System 1 [Development Environment]’ so it’s logical to assume that will not be the title when the automation is run in the production system.
css-selector is almost always bad to use, one slight change in the page and css-selector will be different. And of course idx will change if the page changes. Notice that the question directly says the application is known to change the layout and order of elements - which will affect both css-selector and idx.
App can only change if the developer intentionally changes the target of the Use App/Browser activity. That makes it the only attribute that’s stable.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.