GUI Map & RegEx
I am certain this has all been covered before but I am still having issues with a problem. The application I am testing has the ability to create a filter for email. One of the specifications is to perform an action based on the contents of various portions of an email. When you choose this, a window pops up titled “The Subject field contains specific words”. The title changes based on which portion of the message you are creating the filter for. It may also say “The From field contains specific words”, or “The To field contains specific words” and so on. Inside of the window a few of the button labels change, substituting the “From field” label to the field that it is actually being applied to.
Few, ok my question is this: In order to correctly identify and work with this window, RegExs are going to be involved. I can not for the life of me seem to get to them to work. Do I need to change the GUI map, and then the code that uses it or what exactly? For example if I where to do a set_window call, what is the correct syntax? How do I correctly write the RegEx to catch the windows. I am a little in the dark here as I am very new to WinRunner
Any help is greatly appricated!
Re: GUI Map & RegEx
Contents of GUI map file.
label: "!.*- Notepad",
"Exclamation point" (start of Regualar expression)
"Period" (match any character)
"Asterisk" (match any number of previous character)
label: "!.*specific words",
cranem451 - email@example.com