Skip to main content

I want to set the window title option dynamically using variable as input and passing the value to input variable at runtime.

Is there any way I can achieve this? 

No, there is no way to put a String variable as the title of the window in actions like Recorder: Capture.

What you can do is to use wildcards if your title changes significantly.

Another possibility would be to use JavaScript injection to change the browser window to the value in the variable. This would change the browser title to a known value that you could then use in your Recorder: Capture actions. (e.g., this changes a dynamic browser title to a fixed one)

 


@Aaron.Gleason the wildcards logic works as expected. Thanks for the help!


No, there is no way to put a String variable as the title of the window in actions like Recorder: Capture.

What you can do is to use wildcards if your title changes significantly.

Another possibility would be to use JavaScript injection to change the browser window to the value in the variable. This would change the browser title to a known value that you could then use in your Recorder: Capture actions. (e.g., this changes a dynamic browser title to a fixed one)

 

Great thought ​@Aaron.Gleason ,

But I think I did this somewhere where I passed the title dynamically to the variable using Window actions, what you can try is ​@surathak when the browser opens you can use Window→ Get Active Window title → Save it to variable and then use Window→ Set title and use the variables 

Let me know if it works


Reply