window data section url domain wildcard

  • 23 January 2022
  • 9 replies
  • 7 views

HI everyone

I'm trying to open a chrome window

and to insert in the "url domain" in the "window data" section a wildcard

not a specific url - so it wont give me trouble when its not exactly the same

can someone help me? is it even possible?


9 replies

Hi Daniel,

Can you just open the browser without a URL and then do F6 (select URL bar) and insert text with the correct URL (based on your logic)?

Have a great week!

Marlon

Yeah I can

but what if next time the url will change? like instead "test" it will say prod?

so I want it to be with the 2 options

so I thought I will be able to insert the 2 options with a wildcard - .web.****.com

For now I allready fixed it by putting the first word (so I'm not stuck...)

But I thought there is a better way...

When does the URL change?

in case you know when you can write the URL with a variable and IF ... , if not i guess wildcards work.

so how do i use the wildcard?

and I didnt know that u can use a variable in the window data section.

 

so in here I can use a var instead a hardcoded url? or didn't understand u correctly?

I think Marlon mentioned that you can use a variable in the run command...

And in the Windows dat as you've shown you can use 'Contains' and leave the part not marked that changes a lot so the bot will always open the window although there's a part of the URL that changes.

ohh

But it's not exactly answering my Q

I mean when I need to control the Chrome windowin te URL domain, I want to insert there a Regex so it will get couple of windows in same step...

like: www.cnn.* (so it will get the ".com" and the ".co.il") this is just an example

That is not possible with windowData...

I would split the domain name first into 2 variables

first part is the not changing part and the second variable I would create a list of possibilities and loop through the posibilities fill variable and create a HTML and open new tab in chrome and open domain the loop to the next on the list until the last HTML.

Thanx I will do that

But what if I'll need to add another url to the list?

I will need to make another step - won't I?

you make al list the endparts of the domains devided by |

then you copy it into a variable name it list, split it in your loop

Like this:

 

Reply