Forum Discussion
Extra information to my previous comment:
what I just tried:
created an variable 'dossier' of type string (on project level);
in my keyword test,
I inserted a SetVariable command, and I chose (Onscreen object), then I used the spyder to find/select the object.
In this example the object's full path is:
Aliases.iexplore.pageApacheGeronimoEmbeddedTomcat.panelData2.panel.panelIcWindowbody.panelIcWindowcontents.panel.panelWfeContainer.panelWfeBody.panel.tableWfeWfeie.cellWfeWfeInputcolorWfeInputread.panel310021229
the thing I need to catch here is in fact the "dossiernummer", which is last part of the object's path (in this example i.t's 310021229).
I also created a log message to try to post the variable to the log, to see if it succeeded.
However, it's not working.
I get a "type message" when I run this test :(
I think it's failing because there is mismatch on the variable's type (string), compared to the onscreen object which contains the filenumber. Point is that I do know of what type of object this is (it's not a string, that's for sure).
What I do know is, if I use the Object spider, to navigate to the field which contains the 'dossiernumber', I see the 'Innertext" property contains the 'dossiernumber', but I don't know how to catch that "string of numbers", and put it in a variable....
Here is what the Object Spyder tells me of this object:
Aliases.iexplore.pageApacheGeronimoEmbeddedTomcat.panelData2.panel.panelIcWindowbody.panelIcWindowcontents.panel.panelWfeContainer.panelWfeBody.panel.tableWfeWfeie.Cell(1, 4).Panel(0).innerText
So, the big questions are:
1) what kind of variable to use?
2) what piece of code to use to select the last 9 digits of the object's full path
3) Put this all into one working script... :)
Any tips or ideas are very much welcome!
what I just tried:
created an variable 'dossier' of type string (on project level);
in my keyword test,
I inserted a SetVariable command, and I chose (Onscreen object), then I used the spyder to find/select the object.
In this example the object's full path is:
Aliases.iexplore.pageApacheGeronimoEmbeddedTomcat.panelData2.panel.panelIcWindowbody.panelIcWindowcontents.panel.panelWfeContainer.panelWfeBody.panel.tableWfeWfeie.cellWfeWfeInputcolorWfeInputread.panel310021229
the thing I need to catch here is in fact the "dossiernummer", which is last part of the object's path (in this example i.t's 310021229).
I also created a log message to try to post the variable to the log, to see if it succeeded.
However, it's not working.
I get a "type message" when I run this test :(
I think it's failing because there is mismatch on the variable's type (string), compared to the onscreen object which contains the filenumber. Point is that I do know of what type of object this is (it's not a string, that's for sure).
What I do know is, if I use the Object spider, to navigate to the field which contains the 'dossiernumber', I see the 'Innertext" property contains the 'dossiernumber', but I don't know how to catch that "string of numbers", and put it in a variable....
Here is what the Object Spyder tells me of this object:
Aliases.iexplore.pageApacheGeronimoEmbeddedTomcat.panelData2.panel.panelIcWindowbody.panelIcWindowcontents.panel.panelWfeContainer.panelWfeBody.panel.tableWfeWfeie.Cell(1, 4).Panel(0).innerText
So, the big questions are:
1) what kind of variable to use?
2) what piece of code to use to select the last 9 digits of the object's full path
3) Put this all into one working script... :)
Any tips or ideas are very much welcome!
Related Content
- 6 years ago
- 13 years ago
Recent Discussions
- 4 days ago
- 9 days ago
- 13 days ago