-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add XML documentation for all potential exceptions thrown across the …
…libraries
- Loading branch information
1 parent
7363c45
commit 1cca7cd
Showing
146 changed files
with
12,114 additions
and
10,753 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
namespace Legerity.Android | ||
{ | ||
using OpenQA.Selenium; | ||
using OpenQA.Selenium.Appium; | ||
using OpenQA.Selenium.Appium.Android.UiAutomator; | ||
namespace Legerity.Android; | ||
|
||
using OpenQA.Selenium; | ||
using OpenQA.Selenium.Appium; | ||
using OpenQA.Selenium.Appium.Android.UiAutomator; | ||
|
||
/// <summary> | ||
/// Defines a collection of extra locator constraints for <see cref="By"/>. | ||
/// </summary> | ||
public static class AndroidByExtras | ||
{ | ||
/// <summary> | ||
/// Defines a collection of extra locator constraints for <see cref="By"/>. | ||
/// Gets a mechanism to find elements by an Android content description. | ||
/// </summary> | ||
public static class AndroidByExtras | ||
/// <param name="contentDesc">The content description to match exactly on.</param> | ||
/// <returns>A <see cref="By"/> object the driver can use to find elements.</returns> | ||
public static By ContentDescription(string contentDesc) | ||
{ | ||
/// <summary> | ||
/// Gets a mechanism to find elements by an Android content description. | ||
/// </summary> | ||
/// <param name="contentDesc">The content description to match exactly on.</param> | ||
/// <returns>A <see cref="By"/> object the driver can use to find elements.</returns> | ||
public static By ContentDescription(string contentDesc) | ||
{ | ||
return new ByAndroidUIAutomator(new AndroidUiSelector().DescriptionEquals(contentDesc)); | ||
} | ||
return new ByAndroidUIAutomator(new AndroidUiSelector().DescriptionEquals(contentDesc)); | ||
} | ||
|
||
/// <summary> | ||
/// Gets a mechanism to find elements by an Android partial content description. | ||
/// </summary> | ||
/// <param name="contentDesc">The partial content description to match on.</param> | ||
/// <returns>A <see cref="By"/> object the driver can use to find elements.</returns> | ||
public static By PartialContentDescription(string contentDesc) | ||
{ | ||
return new ByAndroidUIAutomator(new AndroidUiSelector().DescriptionContains(contentDesc)); | ||
} | ||
/// <summary> | ||
/// Gets a mechanism to find elements by an Android partial content description. | ||
/// </summary> | ||
/// <param name="contentDesc">The partial content description to match on.</param> | ||
/// <returns>A <see cref="By"/> object the driver can use to find elements.</returns> | ||
public static By PartialContentDescription(string contentDesc) | ||
{ | ||
return new ByAndroidUIAutomator(new AndroidUiSelector().DescriptionContains(contentDesc)); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,65 @@ | ||
namespace Legerity.Android.Elements.Core | ||
{ | ||
using Legerity.Android.Elements; | ||
using OpenQA.Selenium.Appium; | ||
using OpenQA.Selenium.Appium.Android; | ||
using OpenQA.Selenium.Remote; | ||
namespace Legerity.Android.Elements.Core; | ||
|
||
using Legerity.Android.Elements; | ||
using OpenQA.Selenium.Appium; | ||
using OpenQA.Selenium.Appium.Android; | ||
using OpenQA.Selenium.Remote; | ||
|
||
/// <summary> | ||
/// Defines a <see cref="AndroidElement"/> wrapper for the core Android Button control. | ||
/// </summary> | ||
public class Button : AndroidElementWrapper | ||
{ | ||
/// <summary> | ||
/// Defines a <see cref="AndroidElement"/> wrapper for the core Android Button control. | ||
/// Initializes a new instance of the <see cref="Button"/> class. | ||
/// </summary> | ||
public class Button : AndroidElementWrapper | ||
/// <param name="element"> | ||
/// The <see cref="AndroidElement"/> reference. | ||
/// </param> | ||
public Button(AndroidElement element) | ||
: base(element) | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="Button"/> class. | ||
/// </summary> | ||
/// <param name="element"> | ||
/// The <see cref="AndroidElement"/> reference. | ||
/// </param> | ||
public Button(AndroidElement element) | ||
: base(element) | ||
{ | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Allows conversion of a <see cref="AndroidElement"/> to the <see cref="Button"/> without direct casting. | ||
/// </summary> | ||
/// <param name="element"> | ||
/// The <see cref="AndroidElement"/>. | ||
/// </param> | ||
/// <returns> | ||
/// The <see cref="Button"/>. | ||
/// </returns> | ||
public static implicit operator Button(AndroidElement element) | ||
{ | ||
return new Button(element); | ||
} | ||
/// <summary> | ||
/// Allows conversion of a <see cref="AndroidElement"/> to the <see cref="Button"/> without direct casting. | ||
/// </summary> | ||
/// <param name="element"> | ||
/// The <see cref="AndroidElement"/>. | ||
/// </param> | ||
/// <returns> | ||
/// The <see cref="Button"/>. | ||
/// </returns> | ||
public static implicit operator Button(AndroidElement element) | ||
{ | ||
return new Button(element); | ||
} | ||
|
||
/// <summary> | ||
/// Allows conversion of a <see cref="AppiumWebElement"/> to the <see cref="Button"/> without direct casting. | ||
/// </summary> | ||
/// <param name="element"> | ||
/// The <see cref="AppiumWebElement"/>. | ||
/// </param> | ||
/// <returns> | ||
/// The <see cref="Button"/>. | ||
/// </returns> | ||
public static implicit operator Button(AppiumWebElement element) | ||
{ | ||
return new Button(element as AndroidElement); | ||
} | ||
/// <summary> | ||
/// Allows conversion of a <see cref="AppiumWebElement"/> to the <see cref="Button"/> without direct casting. | ||
/// </summary> | ||
/// <param name="element"> | ||
/// The <see cref="AppiumWebElement"/>. | ||
/// </param> | ||
/// <returns> | ||
/// The <see cref="Button"/>. | ||
/// </returns> | ||
public static implicit operator Button(AppiumWebElement element) | ||
{ | ||
return new Button(element as AndroidElement); | ||
} | ||
|
||
/// <summary> | ||
/// Allows conversion of a <see cref="RemoteWebElement"/> to the <see cref="Button"/> without direct casting. | ||
/// </summary> | ||
/// <param name="element"> | ||
/// The <see cref="RemoteWebElement"/>. | ||
/// </param> | ||
/// <returns> | ||
/// The <see cref="Button"/>. | ||
/// </returns> | ||
public static implicit operator Button(RemoteWebElement element) | ||
{ | ||
return new Button(element as AndroidElement); | ||
} | ||
/// <summary> | ||
/// Allows conversion of a <see cref="RemoteWebElement"/> to the <see cref="Button"/> without direct casting. | ||
/// </summary> | ||
/// <param name="element"> | ||
/// The <see cref="RemoteWebElement"/>. | ||
/// </param> | ||
/// <returns> | ||
/// The <see cref="Button"/>. | ||
/// </returns> | ||
public static implicit operator Button(RemoteWebElement element) | ||
{ | ||
return new Button(element as AndroidElement); | ||
} | ||
} |
Oops, something went wrong.