cannot find the object's parent: tried everything that I know
I am encountering this issue.
Following is a hierarchy
Browser: Nebraska Department of Labor
*****Page: Nebraska Department of Labor
***************WebTable: Thursday, February 25, 2016
I am trying to select a value from Weblist: value = "Not Available"
Browser("NEworks").Page("Nebraska Department of").Frame("Class Name:=Frame","html tag:=FRAME","name:=folderFrame","url:=https://uimauat\.nwd\.ne\.gov/BPSWeb/bpsAppPage1FormPath\.do").Webtable("column names:=Thursday, February 25, 2016","html tag:=TABLE").WebList("html id:=highestGradeOfEducation").Select "Not Available"
1. Objects and their parent objects are there in OR
2. When I use highlight feature from OR for object WebList, it does highlight in application (both Frame and Weblist)
3. This is not the dynamic object since its properties are constant
I am still getting below error
"cannot find the "HighestGradeOfEducation" object's parent "folderFrame" (Class Frame). Verify that parent properties match an object currently displayed in your application.
First time when I got the error, I noticed that weblist object's parent object was Frame and webtable was missing in OR. However, as per Hierarchy, the weblist should have been under Webtable.
Hence I added Webtable and moved weblist under Webtable. But, it still did not work.
The error message says it can't find the FRAME.
You said the frame is in your object repository, but your script is NOT using it.
Your script is using a Frame object that is defined dynamically (it's called "descriptive programming") and I can tell this by the presence of ':=' in the definition, compared to your Browser and Page objects which are defined by a simple string name.
Change your script so that it uses the frame from the object repository.