Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do a regexp in a waitForPopUp Command in Selenium IDE?

Tags:

selenium-ide

I have popups with this name structure:

static_dynamic_static

The dynamic part changes each time I log in so my test cases fail each time. I thought about solving the problem with a regular expression like this:

Command: waitForPopUp

Target: regexp:static_.+_static

But this doesn't work. What do I do wrong? Is this even working. If not, is there another way to solve this problem?

like image 372
Niko Lang Avatar asked Sep 08 '16 09:09

Niko Lang


1 Answers

From my experience you don't need to declare it as a regex within the target field, you should just be able to have the target as:

static_*_static

and that should do it

like image 63
Jsmith2800 Avatar answered Oct 12 '22 23:10

Jsmith2800