public new void NewInstance()
        {
            if (!HaveRequirementsBeenSet)
            {
                HaveRequirementsBeenSet = true;
            }
            else
            {
                return;
            }
            ReturnedOutputKeysList.Add(KeyList.Value.ToString());

            InputParameterAvailable = new List <KeyValuePairEx <string, object> >()
            {
                new KeyValuePairEx <string, object>("Selector", Selector),
                new KeyValuePairEx <string, object>("AttributeName", AttributeName),
            };
            InputParameterRequired = new List <string>()
            {
                "Selector",
                "AttributeName",
            };
            Description =
                "Gets the style of an element. The AttributeName will be the css property!";
            TimeoutInSec = Options.DefaultTimeoutSeconds;
        }
       public new void NewInstance()
       {
           if (!HaveRequirementsBeenSet)
           {
               HaveRequirementsBeenSet = true;
           }
           else
           {
               return;
           }
           ReturnedOutputKeysList.Add(KeyList.Result.ToString());
           EventScriptBlock.Value = @"new MouseEvent('click', {
   'view': window,
   'bubbles': true,
   'cancelable': true
 });";
           SetAvailableInputParameters();
           InputParameterRequired = new List <string>()
           {
               "Selector",
           };
           Description =
               @"Invoke mouse event from https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Creating_and_triggering_events directly on elements";
           TimeoutInSec = Options.DefaultTimeoutSeconds;
       }
Example #3
0
        public void NewInstance()
        {
            if (!HaveRequirementsBeenSet)
            {
                HaveRequirementsBeenSet = true;
            }
            else
            {
                return;
            }
            ReturnedOutputKeysList.Add(KeyList.SiteLoadedUrl.ToString());

            SetAvailableInputParameters();
            InputParameterSet = new List <KeyValuePairEx <string, object> >()
            {
                new KeyValuePairEx <string, object>("ExpectedSiteToLoad", ExpectedSiteToLoad),
            };
            InputParameterRequired = new List <string>()
            {
                "ExpectedSiteToLoad"
            };
            Description =
                "Lets the browser wait until the specified url has loaded. POSSIBLE DEADLOCK AHEAD!";
            TimeoutInSec = Options.DefaultTimeoutSeconds;
        }
Example #4
0
        public void NewInstance()
        {
            if (!HaveRequirementsBeenSet)
            {
                HaveRequirementsBeenSet = true;
            }
            else
            {
                return;
            }
            ReturnedOutputKeysList.Add(KeyList.SerializedNode.ToString());

            SetAvailableInputParameters();
            InputParameterRequired = new List <string>()
            {
                "Selector"
            };
            Description =
                "Returns the full Node of an element in xml serialized format";
            TimeoutInSec = Options.DefaultTimeoutSeconds;
        }
        public void NewInstance()
        {
            if (!HaveRequirementsBeenSet)
            {
                HaveRequirementsBeenSet = true;
            }
            else
            {
                return;
            }
            ReturnedOutputKeysList.Add(KeyList.Base64String.ToString());

            SetAvailableInputParameters();
            InputParameterRequired = new List <string>()
            {
                "Selector"
            };
            Description =
                "Extracts an image from the DOM in base64 format. POSSIBLE DEADLOCK AHED when the selector fails and no image was found!";
            TimeoutInSec = Options.DefaultTimeoutSeconds;
        }
 public new void NewInstance()
 {
     if (!HaveRequirementsBeenSet)
     {
         HaveRequirementsBeenSet = true;
     }
     else
     {
         return;
     }
     ReturnedOutputKeysList.Add(KeyList.ExecutionResult.ToString());
     Javascript.Value = ".submit()";
     SetAvailableInputParameters();
     InputParameterRequired = new List <string>()
     {
         "Selector",
     };
     Description =
         "Invokes submit event on the selector";
     TimeoutInSec = Options.DefaultTimeoutSeconds;
 }
        public void NewInstance()
        {
            if (!HaveRequirementsBeenSet)
            {
                HaveRequirementsBeenSet = true;
            }
            else
            {
                return;
            }
            ReturnedOutputKeysList.Add(KeyList.NumberOfFoundElements.ToString());

            SetAvailableInputParameters();
            InputParameterRequired = new List <string>()
            {
                "Selector"
            };
            Description =
                "Instructs the browser to wait until one or many elements are available in the DOM. POSSIBLE DEADLOCK AHED!";
            TimeoutInSec = Options.DefaultTimeoutSeconds;
        }
        public void NewInstance()
        {
            if (!HaveRequirementsBeenSet)
            {
                HaveRequirementsBeenSet = true;
            }
            else
            {
                return;
            }
            ReturnedOutputKeysList.Add(KeyList.ResourceUrl.ToString());
            ReturnedOutputKeysList.Add(KeyList.LoadedAt.ToString());

            SetAvailableInputParameters();
            InputParameterRequired = new List <string>()
            {
                "ExpectedResourceUrl",
            };
            Description =
                "Instructs the browser to check if a resource has been loaded and wait for it. POSSIBLE DEADLOCK AHEAD!";
            TimeoutInSec = Options.DefaultTimeoutSeconds;
        }
        public new void NewInstance()
        {
            if (!HaveRequirementsBeenSet)
            {
                HaveRequirementsBeenSet = true;
            }
            else
            {
                return;
            }
            ReturnedOutputKeysList.Add(KeyList.Result.ToString());

            SetAvailableInputParameters();
            InputParameterRequired = new List <string>()
            {
                "Selector",
                "EventScriptBlock",
            };
            Description =
                "Invoke Events from https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Creating_and_triggering_events";
            TimeoutInSec = Options.DefaultTimeoutSeconds;
        }
Example #10
0
        public void NewInstance()
        {
            if (!HaveRequirementsBeenSet)
            {
                HaveRequirementsBeenSet = true;
            }
            else
            {
                return;
            }
            ReturnedOutputKeysList.Add(KeyList.FrameName.ToString());

            InputParameterAvailable = new List <KeyValuePairEx <string, object> >()
            {
            };
            InputParameterRequired = new List <string>()
            {
            };
            Description =
                "Gets all the framenames from the browser.";
            TimeoutInSec = Options.DefaultTimeoutSeconds;
        }
 public new void NewInstance()
 {
     if (!HaveRequirementsBeenSet)
     {
         HaveRequirementsBeenSet = true;
     }
     else
     {
         return;
     }
     ReturnedOutputKeysList.Add(KeyList.Result.ToString());
     EventScriptBlock.Value = "";
     KeyCode.Value          = "ArrowLeft";
     SetAvailableInputParameters();
     InputParameterRequired = new List <string>()
     {
         "Selector",
         "KeyCode",
     };
     Description =
         @"Invokes keydown keypress and keyup event of the given keyboard code of https://developer.mozilla.org/de/docs/Web/API/KeyboardEvent/key/Key_Values like ArrowLeft, ArrowRight etc. or a, test this on https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code";
     TimeoutInSec = Options.DefaultTimeoutSeconds;
 }
        public void NewInstance()
        {
            if (!HaveRequirementsBeenSet)
            {
                HaveRequirementsBeenSet = true;
            }
            else
            {
                return;
            }
            ReturnedOutputKeysList.Add(KeyList.ExecutionResult.ToString());
            ReturnedOutputKeysList.Add(KeyList.ExecutedJavascript.ToString());

            SetAvailableInputParameters();
            InputParameterRequired = new List <string>()
            {
                "Selector",
                "Javascript",
            };
            Description =
                "Executes Javascript. If Selector is set, the javascript is tried to be executed on it";
            TimeoutInSec = Options.DefaultTimeoutSeconds;
        }
        public void NewInstance()
        {
            if (!HaveRequirementsBeenSet)
            {
                HaveRequirementsBeenSet = true;
            }
            else
            {
                return;
            }

            ReturnedOutputKeysList.Add(KeyList.MessageText.ToString());
            ReturnedOutputKeysList.Add(KeyList.DefaultPromptValue.ToString());
            ReturnedOutputKeysList.Add(KeyList.DialogType.ToString());

            SetAvailableInputParameters();
            InputParameterRequired = new List <string>()
            {
            };
            Description =
                "Gets an normally showed js prompt. Note that the prompt has to be set first, or the browser will ignore it! POSSIBLE DEADLOCK AHED when no prompt has shown, because Browser will wait for it!";
            TimeoutInSec = Options.DefaultTimeoutSeconds;
        }
        public void NewInstance()
        {
            if (!HaveRequirementsBeenSet)
            {
                HaveRequirementsBeenSet = true;
            }
            else
            {
                return;
            }

            ReturnedOutputKeysList.Add(KeyList.Host.ToString());
            ReturnedOutputKeysList.Add(KeyList.Port.ToString());
            ReturnedOutputKeysList.Add(KeyList.Scheme.ToString());
            ReturnedOutputKeysList.Add(KeyList.Realm.ToString());

            SetAvailableInputParameters();
            InputParameterRequired = new List <string>()
            {
            };
            Description =
                "Gets the http auth infos of an elapsed authentication. SetHttpAuth has to be set before, or browser will loop!";
            TimeoutInSec = Options.DefaultTimeoutSeconds;
        }
Example #15
0
        public void NewInstance()
        {
            if (!HaveRequirementsBeenSet)
            {
                HaveRequirementsBeenSet = true;
            }
            else
            {
                return;
            }
            ReturnedOutputKeysList.Add(KeyList.UserInputResult.ToString());

            InputNeeded.Value = true;
            KeepInFront.Value = true;

            SetAvailableInputParameters();
            InputParameterRequired = new List <string>()
            {
                "InsecureDisplayObjects",
                "InputNeeded",
            };
            Description =
                "Gets input from user";
        }