I am working on a script which needs to test a webpage where the user first creates a filer (with a certain name), and then renames the same filter.
The problem I'm having, is that the ONDIALOG command gets completely confused after handling a couple of such dialogs.
I create a filter called "imacros_test_filter", then rename it to "imacros_renamed_filter" - when I run the script the second time, it inputs "imacros_renamed_filter" in the first input box, and nothing in the second.
I also have a couple of ONDIALOGS with no content in-between (just OK or CANCEL), and with those in the mix it seems my script doomed to just work OK just every once in a while.
Is this a known issue, or is there some way to solve it/is there something I'm missing?
Here's a sample:
Code: Select all
SET !REPLAYSPEED MEDIUM ONDIALOG POS=1 BUTTON=CANCEL CONTENT= TAG POS=1 TYPE=TD ATTR=TXT:can't<SP>delete<SP>this<SP>one WAIT SECONDS=1 ONDIALOG POS=1 BUTTON=OK CONTENT=imacros_test_filter TAG POS=1 TYPE=TD ATTR=CLASS:gwt-MenuItem*&&ROLE:menuitem&&TXT:new WAIT SECONDS=1