Results 1 to 3 of 3

Thread: When I playback the same the file cannot be saved

  1. #1
    Geek_Guest
    Guest

    When I playback the same the file cannot be saved

    Hi, I need to record the following

    1. Open natepad
    2. write string in the notepad
    3. save the file
    4. close the fiile

    When i playback the same the file cannot be saved as already the same file exists.
    How do i solve this issue.Can you send me the TSL.

    Question asked by visitor dominic


  2. #2
    Expert Member
    Join Date
    Nov 2006
    Answers
    518

    Re: When I playback the same the file cannot be saved

    You can get the notepad file string and the file name from the data grid like you get the inputs in the data driven testing.

    I will have to work on this for the TSL, so wait until I come back to this thread.

    Lack of WILL POWER has caused more failure than
    lack of INTELLIGENCE or ABILITY.

    -sutnarcha-

  3. #3

    Re: When I playback the same the file cannot be saved

    This code can help u some what.


    if (file_open("C:\\Untitled-Notepad",FO_MODE_READWRITE)==E_OK)
    {
    set_window("Untitled-Notepad");
    type("Sample Test");
    menu_select_item("File";Save); # check the syntax once of menu
    file_close(""C:\\Untitled-Notepad");
    }
    else
    {
    tl_step(" File Does not Exists",1,"");
    }


  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