When my test case involves making a selection from a dropdown window, I get the following error message - " The combo box item 'XXX' was clicked, but the selection was not changed. " Is there a way to fix this?
Solved! Go to Solution.
Hi Robert,
I don't know what's going on but my test cases are running again without failing. This is so strange since I didn't make any changes to them. So bizzare. Thank you for all your help though. 😃
Kate
I'm curious as to how you have your code written. Typically a "ClickItem" should do it. However, depending upon the application (especially if it's a web application) there may be code behind the scenes that needs to finish before all components are ready for interaction so ClickItem could execute but a final step in the page load could wipe it out.
Could you share some more information? What type of application are you testing? What type of component is it? Could you copy paste the code here or screenshot the keyword test?
Rough guess.... but each time you change values in that filter, specifically the distance, are there some other things taht change on the page? Do new fields display or other such stuff?
Just as a test (I'm not suggesting keeping it permanently there), what happens if you drop like a 2 second delay after the "SetText 10"?
No other change on the page and no new fields. I tried adding the delay and that didn't work either. =(
I am finding that most of my test cases are failing due to this same issue. Argh.
OK... going out on a limb. I see that this application seems to be a listing of multiple hotels, each one that you're editing. I'm wondering if there is something going on confusing the object recognition... where you're calling ClickItem on one but that there may be another non-visible component that is being recognized as well.
What's your mapping look like for the drop down? If, in NameMapping, you right click on the item and select "Show in Object Browser" or "Highlight on Screen", does the correct component highlight?
Thanks for the assistance, Robert!
@kate123, did the suggestions given in this thread help you?
Hi Robert,
I don't know what's going on but my test cases are running again without failing. This is so strange since I didn't make any changes to them. So bizzare. Thank you for all your help though. 😃
Kate
Hi Kate,
It's a miracle 🙂
Sometimes they happen! Happy to hear that everything is ok now.
User | Count |
---|---|
4 | |
4 | |
1 | |
1 | |
1 |
Subject | Author | Latest Post |
---|---|---|