Example #1
0
 /// <summary>
 /// Submit a webelement
 /// </summary>
 public void Submit()
 {
     try
     {
         WrappedElement.Submit();
     }
     catch (StaleElementReferenceException e)
     {
         if (Driver != null && by != null)
         {
             Logger.Info("Caught exception {0}. Attempting to re-initialize element", e.Message);
             InitializeElement();
             WrappedElement.Submit();
         }
         else
         {
             throw;
         }
     }
     catch (Exception e)
     {
         Logger.Error(e);
         throw;
     }
     Logger.Info("Entered Submit in the webelement : {0}", by);
 }
Example #2
0
        public UpWebElement Submit()
        {
            UpDriver.WaitForPageReady();
            Log.GetLogger().Info($"Submitting element [{ElementIdentifier}]");
            WrappedElement.Submit();

            return(this);
        }
Example #3
0
 /// <summary>
 ///     Submits this element to the web server.
 /// </summary>
 /// <remarks>
 ///     If this current element is a form, or an element within a form,.
 ///     then this will be submitted to the web server. If this causes the current.
 ///     page to change, then this method will block until the new page is loaded.
 /// </remarks>
 public void Submit()
 {
     Logger.WriteLine(string.Format(CultureInfo.InvariantCulture, "Submit element '{0}'", Name));
     WrappedElement.Submit();
 }
Example #4
0
 public void Submit()
 {
     WrappedElement.Submit();
 }
Example #5
0
 /// <summary>
 ///     Submits this element to the web server.
 /// </summary>
 public void Submit()
 {
     NgDriver.WaitForAngular();
     WrappedElement.Submit();
 }