DeadGrunt
Member
Reged: 10/30/06
Posts: 154
Loc: Vilnius, Lithuania
|
|
Hi all
We test application in Oracle Forms 10G, often there are several forms opened simultaneously.
And now question – what to do if two or more forms have element with the same Block Name and Name?
For example: //forms:button[(@name=’TOOLBAR_EXIT_FORM_0’)]
How to address these elements?
-------------------- Roman
|
Mill_town_Larry
Member
Reged: 07/12/01
Posts: 212
|
|
How is it that they have the same name? I though the default naming would be:
TOOLBAR_EXIT_FORM_0 TOOLBAR_EXIT_FORM_1
I there is a duplicate name then OpenScript is just going to find the first one. Do the elements do different things?
|
DeadGrunt
Member
Reged: 10/30/06
Posts: 154
Loc: Vilnius, Lithuania
|
|
if they were on the same form, then I think index would work correctly
but they are on different forms, so both have index "0"
these elements do different things - first closes first form, second closes second form
yes, now OpenScript simply finds the first element. unfortunately, it's the button on the inactive form, and it obviously cannot be pressed
-------------------- Roman
Edited by DeadGrunt (07/14/10 11:16 PM)
|
DeadGrunt
Member
Reged: 10/30/06
Posts: 154
Loc: Vilnius, Lithuania
|
|
now we are thinking about instrumenting the code - inserting form name to the each block name, so it will look like:
//forms:button[(@name=’FORM1_TOOLBAR_EXIT_FORM_0’)] //forms:button[(@name=’FORM2_TOOLBAR_EXIT_FORM_0’)]
-------------------- Roman
|