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.
[B]Question asked by visitor dominic[/b]
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.:D
I will have to work on this for the TSL, so wait until I come back to this thread.:mad:
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,"");
}