Object causing exception during test run
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Object causing exception during test run
Hi all,
I'm having an issue running a test where an object is continually causing an exception.
The object can be found by clicking the "Highlight" option from the right click menu from the Namemapping tree. So appear no issues with the mapping.
I have added a waitproperty operation to the test ,to wait until the object exists, the exception still occurs on the object.
I have added a delay to the test to allow the object to load, the object still causes an exception.
I have added interactions with other page objects on the same webpage to the test, before interacting with the required object, object still causes an exception.
In the keyword test log, "Details", the only message I am getting is "Member not found"
Any ideas on this? is there a remedy for it?
Thanks
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@ThomasCasserly wrote:
Hi Alex,
I have no idea, how would I find it? FYI I'm using keyword tests in case that makes a difference.
Hi @ThomasCasserly - I was answering your question to Alex about finding the code line that causes the error, because you said you didn't know how to find it. Now you do!
Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alex,
It's definitely an "Exception" that is occurring and not "Object not found". The message under the details tab in the keyword test log reads "Member not found".
I'm attaching the log files here in a Zip.
I'm not a coder, but from your explanation, I tried changing the Item on the WaitProperty operation to be the top level parent (to prevent the loop??). Also spotted that the value I was using for the Wait Property operation was an Object property (which I think is what you were explaining 🙂) so I changed it to be a boolean constant, ( I usually use Boolean constants on WaitPropeprty operations, just a mistake here on my part). However I still get the exception error. Screenshot for change I made to "Item" and "Value" is also attached.
What I'm expecting to happen is that the script waits until the Exists property is true for the Item and then continues running the Keyword test. I have read the help article on WaitProperty operations but maybe I'm doing it wrong.
Thanks
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ah, ok, thanks Marsha. I thought "code line" was something to do with viewing the test as script, not that it was just the keyword test line 🙂
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok,
So i just found the problem myself, I hadn't selected the "Exists" property of the Object, but had only selected the object itself.
Once I Selected the Object, and set the "Exists" property as the value the Exception no longer occurs.
User error this time (must be the first time ever 😋😅😅)
Thanks all for pointing me in the right direction and helping me find "my own" issue🙈🙈🙈

- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »