﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UBoat.WebHawk.Controller.Model.Automation.Steps
{
    [Serializable]
    public class NavigateStep : Step
    {
        public string URL { get; set; }
        public bool TrimVariableValueWhitespace { get; set; }
        public NavigateWaitType WaitType { get; set; }

        public NavigateStep()
        {
            this.WaitType = NavigateWaitType.UriDocumentComplete;
        }

        protected override string get_DisplayNameImpl()
        {
            return "Navigate to URL"; 
        }
    }

    [Serializable]
    public enum NavigateWaitType
    {
        UriDocumentComplete,
        AnyDocumentComplete
    }
}
