Peter Nicolaisen
Katalon Apprentice
03/08/2018

selectWindow - how does this command work?

Hi everyone,

I'm running into the problem of trying to bring Katalon to focus on a newly opened window/tab.
I tried looking up solutions online, but most of the stuff I found is pretty cryptic to me as a new user (and as someone who has 0 knowledge of Java or programming in general).

I tried using the name or title of the new window, but to no avail.
Can anyone give me a little hint?

Thanks in advance!
Upvote
Quote

Comments

  • Liam B
    Katalon Moderator
    03/09/2018
    Hi everyone,

    I'm running into the problem of trying to bring Katalon to focus on a newly opened window/tab.
    I tried looking up solutions online, but most of the stuff I found is pretty cryptic to me as a new user (and as someone who has 0 knowledge of Java or programming in general).

    I tried using the name or title of the new window, but to no avail.
    Can anyone give me a little hint? 

    Thanks in advance!
    Hi Peter,

    You'd need to pass title of the Window to the command. E.g.: title =New Window

    Let us know if you have any other issues.

    Thank you for using Katalon Recorder,
    Liam
    Upvote
    Quote
  • Peter Nicolaisen
    Katalon Apprentice
    03/09/2018
    edited March 9
    Liam B said:
    Hi everyone,

    I'm running into the problem of trying to bring Katalon to focus on a newly opened window/tab.
    I tried looking up solutions online, but most of the stuff I found is pretty cryptic to me as a new user (and as someone who has 0 knowledge of Java or programming in general).

    I tried using the name or title of the new window, but to no avail.
    Can anyone give me a little hint? 

    Thanks in advance!
    Hi Peter,

    You'd need to pass title of the Window to the command. E.g.: title =New Window

    Let us know if you have any other issues.

    Thank you for using Katalon Recorder,
    Liam
    Hi Liam,
    thanks for the help.
    Sadly, I can't bring it to work.

    Is this how it's supposed to be used?

    Are the blanks or is the dash in the window title throwing it off maybe? If so, is there a workaround?



    Upvote
    Quote
  • Russ Thomas
    Katalon Evangelist
    03/09/2018
    title (not titel) perhaps?
    Upvote
    Quote
  • Peter Nicolaisen
    Katalon Apprentice
    03/09/2018
    edited March 9
    title (not titel) perhaps?
    *facepalm*
    thanks

    -edit:
    fixed the typo, but still does not work
    Upvote
    Quote
  • Alex
    Katalon Moderator
    03/13/2018
    Thank you for your feedback. We are working on this issue and will have an update soon.
    Upvote
    Quote
  • Alex
    Katalon Moderator
    03/14/2018
    We've released version 3.4.4 with two ways to select a window:
    • By index: selectWindow | win_ser_1
    • By title: selectWindow | title=This is a title
    If you have any issue, don't hesitate to tell us. We always appreciate your feedback.

    Please see example at https://github.com/katalon-studio/katalon-recorder-samples.

    Demo video:


    Upvote
    Quote
  • Stan Bell
    Katalon Apprentice
    03/28/2018
    edited March 28
    does not work in 3.4.10.  neither win_ser_x nor title=, where title contains a space.
    chrome 65 or ff 59 on win10
    Upvote
    Quote
  • Stan Bell
    Katalon Apprentice
    03/28/2018
    edited March 28
    i note your examples are one-word titles w/no spaces.  tho your syntax description a couple of posts above here indicate embedded spaces ok.
    Upvote
    Quote
  • Alex
    Katalon Moderator
    03/29/2018
    edited April 4
    Hi. Please make sure that you allowed popup in Chrome. The demo also showed this step.
    Upvote
    Quote
This discussion has been closed.
Not the answer you're looking for? Consider subscribing to Business support.