Results 1 to 3 of 3

Thread: SilkTest 2006 Error : Window is not Active

  1. #1
    Junior Member
    Join Date
    Sep 2007
    Answers
    4

    Question SilkTest 2006 Error : Window is not Active

    Hi All,

    I am using a .Net application. I have enabled the extension for the application. I am able to identify each .Net object properly. But whenever I write a small script to access those Objects I get "Window is not active" error.

    For eg.
    I have a window declaration for all the textfields in my application but when I try to run the following script,


    WorkBench.BenchmarkInfo.ModelFreeCash.SetFocus()
    WorkBench.BenchmarkInfo.ModelFreeCash.SetText("")



    I get the following Error

    [ ] *** Error: Window '[SwfTextField]Model Free Cash|[SwfTextField]$txtModelFreeCash' is not active
    [ ] Occurred in WorkBench.BenchmarkInfo.ModelFreeCash.SetText



    P.S. The textfield is active but still it says not active.

    Kindly help me with this asap.

    Thanks in advance,
    2lz (Toolz)


  2. #2
    Junior Member
    Join Date
    Dec 2007
    Answers
    3

    Re: SilkTest 2006 Error : Window is not Active

    Quote Originally Posted by toolz View Post
    Hi All,

    I am using a .Net application. I have enabled the extension for the application. I am able to identify each .Net object properly. But whenever I write a small script to access those Objects I get "Window is not active" error.

    For eg.
    I have a window declaration for all the textfields in my application but when I try to run the following script,


    WorkBench.BenchmarkInfo.ModelFreeCash.SetFocus()
    WorkBench.BenchmarkInfo.ModelFreeCash.SetText("")



    I get the following Error

    [ ] *** Error: Window '[SwfTextField]Model Free Cash|[SwfTextField]$txtModelFreeCash' is not active
    [ ] Occurred in WorkBench.BenchmarkInfo.ModelFreeCash.SetText



    P.S. The textfield is active but still it says not active.

    Kindly help me with this asap.

    Thanks in advance,
    2lz (Toolz)
    Hi dear Toolz,
    you are going to set text of a control which is non-changeable like 'static text' control or 'label' control's 'settext' is not available this is ready only.
    I think it will help you.

    With regards,
    Rajesh Jakhal (New Delhi, India)


  3. #3
    Junior Member
    Join Date
    Dec 2007
    Answers
    3

    Re: SilkTest 2006 Error : Window is not Active

    Hi Toolz,
    You are going to change the readonly properties of a control. Here this control is a 'static text' or 'label' control whose caption is ready only.

    With regards,
    Rajesh Jakhal (New Delhi, India)


  4.  Sponsored Ads
    Ad


     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact