I recorded one action in a test, and this test consists two actions.But in keyword view i can see only one action wich does not contains anything.It does not shows the second action which consists the code,also the delete option is disabled for the action displayed in keyword view.
So i want to delete the action wich is displayed in keyword view and keep only the action wich contains code and not displayed in keyword view.
Sori SteveK as i said, i cant see the action which i want to have in the keyword view to delete, only i can see the action which i want to delete, and when i delete it it says "you should have atleast one action" and create another empty action.And i tried in Expert view by going in Edit-->Action-->Delete, the delete option is disabled.
As far as I understand your problem: You have recorded one action not two, right. How can you say that there are two actions. To make it two you have to split the main default action. If you are concern about the folder that shows two actions when you save your script, then it is also correct. In QTP when you save your script it will show you two actions, action0 and action1. these are default actions. Dont worry about action0. Whatever you did its in action1. Dont try to remove that. Thats why it is saying that you should have at least one action. Because in your script there is only one action. action0 is default and it is blank.
Tell me If it works for you.