05-11-2011, 10:02 PM
How can I change my script using RegEx to ignore these _1, _2 … etc and [1], [2]…etc?
Please see my attachment for a visual example.
The "ALL IMAGED CLIENT DOCUMENTS" is in my OR. But now my web page shows ALL IMAGED CLIENT DOCUMENTS[1].zip and the pdf file show ALL IMAGED CLIENT DOCUMENTS_1.pdf. If I continue, both will jump to [2] and _2 respectfully.
I am not sure if I add
current code:
I have been reading up on RegEx (https://www.learnqtp.com/regular-express...gularized/) but I have found myself even more confused. lol
Please see my attachment for a visual example.
The "ALL IMAGED CLIENT DOCUMENTS" is in my OR. But now my web page shows ALL IMAGED CLIENT DOCUMENTS[1].zip and the pdf file show ALL IMAGED CLIENT DOCUMENTS_1.pdf. If I continue, both will jump to [2] and _2 respectfully.
I am not sure if I add
Code:
Window("ALL IMAGED CLIENT DOCUMENTS/_[0-9]").Activate
and
Window("ALL IMAGED CLIENT DOCUMENTS").WinListView("SysListView32").Select "ALL IMAGED CLIENT DOCUMENTS/_[0-9]/.pdf"
current code:
Code:
Window("ALL IMAGED CLIENT DOCUMENTS").Activate
Window("ALL IMAGED CLIENT DOCUMENTS").WinListView("SysListView32").Select "ALL IMAGED CLIENT DOCUMENTS_1.pdf"
Window("ALL IMAGED CLIENT DOCUMENTS").WinToolbar("ToolbarWindow32_3").Press "&File"
Window("ALL IMAGED CLIENT DOCUMENTS").WinMenu("ContextMenu").Select "Open"
Window("ALL IMAGED CLIENT DOCUMENTS").Activate
Window("ALL IMAGED CLIENT DOCUMENTS").HighLight(0)
I have been reading up on RegEx (https://www.learnqtp.com/regular-express...gularized/) but I have found myself even more confused. lol