Skip to content

Commit

Permalink
Added Selenium Element Command to Clear Content, Updated Excel Get La…
Browse files Browse the repository at this point in the history
…st Row Command Display Value
  • Loading branch information
saucepleez committed Aug 8, 2018
1 parent 6995424 commit 86db5bc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions taskt/Core/AutomationCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,7 @@ public class SeleniumBrowserElementActionCommand : ScriptCommand
[Attributes.PropertyAttributes.PropertyUISelectionOption("Right Click")]
[Attributes.PropertyAttributes.PropertyUISelectionOption("Middle Click")]
[Attributes.PropertyAttributes.PropertyUISelectionOption("Double Left Click")]
[Attributes.PropertyAttributes.PropertyUISelectionOption("Clear Element")]
[Attributes.PropertyAttributes.PropertyUISelectionOption("Set Text")]
[Attributes.PropertyAttributes.PropertyUISelectionOption("Get Text")]
[Attributes.PropertyAttributes.PropertyUISelectionOption("Get Attribute")]
Expand Down Expand Up @@ -1044,7 +1045,9 @@ where rw.Field<string>("Parameter Name") == "Attribute Name"
elementValue.StoreInUserVariable(sender, variableName);

break;

case "Clear Element":
element.Clear();
break;
default:
throw new Exception("Element Action was not found");
}
Expand Down Expand Up @@ -2706,7 +2709,7 @@ public override void RunCommand(object sender)
}
public override string GetDisplayValue()
{
return base.GetDisplayValue() + " [Instance Name: '" + v_InstanceName + "']";
return base.GetDisplayValue() + " [Apply to '" + v_applyToVariableName + "', Instance Name: '" + v_InstanceName + "']";
}
}
[Serializable]
Expand Down
2 changes: 1 addition & 1 deletion taskt/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.0.*")]
[assembly: AssemblyFileVersion("1.3.0.0")]
[assembly: AssemblyFileVersion("1.4.0.0")]
//[assembly: AssemblyVersion("0.0.0.2")]
//[assembly: AssemblyFileVersion("0.0.0.2")]
1 change: 1 addition & 0 deletions taskt/UI/Forms/frmCommandEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,7 @@ private void seleniumAction_SelectionChangeCommitted(object sender, EventArgs e)
switch (webAction.Text)
{
case "Invoke Click":
case "Clear Element":
webActionParameterBox.Hide();
additionalParameterLabel.Hide();
variableHelper.Hide();
Expand Down

0 comments on commit 86db5bc

Please sign in to comment.