Forum Discussion
mgroen
14 years agoFrequent Contributor
Hello Mathijs,
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 Alex,
in response to your question:
I have tried your suggested method, and it worked! Thanks!
One other question I have: I have succesfully captured the string and put it in a variable.
However, the string contains some spaces before the actual numbers - is there a way to trim out these spaces?
Thanks in advance.
Related Content
- 6 years ago
- 13 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago