-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from 2gis/feature/get-element-tag-name
Add GetElementTagName command
- Loading branch information
Showing
4 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...ersalAppDriver/WindowsUniversalAppDriver.InnerServer/Commands/GetElementTagNameCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
namespace WindowsUniversalAppDriver.InnerServer.Commands | ||
{ | ||
#region | ||
|
||
using WindowsUniversalAppDriver.Common; | ||
|
||
#endregion | ||
|
||
internal class GetElementTagNameCommand : CommandBase | ||
{ | ||
#region Public Properties | ||
|
||
public string ElementId { get; set; } | ||
|
||
#endregion | ||
|
||
#region Public Methods and Operators | ||
|
||
public override string DoImpl() | ||
{ | ||
var element = this.Automator.WebElements.GetRegisteredElement(this.ElementId); | ||
var tagName = element.GetType().ToString(); | ||
|
||
return this.JsonResponse(ResponseStatus.Success, tagName); | ||
} | ||
|
||
#endregion | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters