Forum Discussion
mgroen
14 years agoFrequent Contributor
The panel310021229 object is an object that allows you to work with the corresponding Panel element of the tested web page. TestComplete used the value of the panel's innerText property to create the name of the panel310021229 object, but generally, this name does not change - it's a static name used in the Name Mapping tree of your TestComplete project.
You need to obtain the contents of the panel through the object's innerText property. The property is a string, so you need to keep the property value within a variable of the String type. After you've created the variable of the String type, you can use the Set Variable Value operation to assign the value of the innerText property to the variable. In the first step of the Set Variable Value operation dialog, select the variable and click Next. In the "Set New Value" step, you can use either the Object Property mode, or the Code Expression mode. In both cases, you can specify one of the following values in the Value field:
Aliases.iexplore.pageApacheGeronimoEmbeddedTomcat.panelData2.panel.panelIcWindowbody.panelIcWindowcontents.panel.panelWfeContainer.panelWfeBody.panel.tableWfeWfeie.cellWfeWfeInputcolorWfeInputread.panel310021229.innerText
or
Aliases.iexplore.pageApacheGeronimoEmbeddedTomcat.panelData2.panel.panelIcWindowbody.panelIcWindowcontents.panel.panelWfeContainer.panelWfeBody.panel.tableWfeWfeie.Cell(1, 4).Panel(0).innerText
Does this help?
Hi,
thanks for your tip.
In fact, I have created an alternative way.
What I have done is following:
I have retrieved the value of innertext, by creating a variable "dossier" of type Object.
See attached screenshot (1)
After that, I used the Log message statement to see if the value is stored. I used the statement "ProjectSuite.Variables.dossier.innertext" , and it is actually being displayed in the log file, so this is good.
However, I cannot acces this value (dossier.innertext) in other tests :( The variable dossier is of type "projectsuite".
So, so far I have not used a variabel of type "string" , I will try this approach as well.
Related Content
- 6 years ago
- 13 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago