Allow regular expression in switchToWindowTitle

Hi everyone,

WebUI.switchToWindowTitle(".Google.") does not work. Does the regex not allow to use in this keyword?

Thanks.

No, unfortunately. It needs a string:

image

But that’s a reasonable thing to want to do, I think. I’ll move this to the Suggestions category.

Also, just FYI, if it did work, it would look like this:

WebUI.switchToWindowTitle(/.google./) 
1 Like