Gets a mechanism to find elements by a partial match on their link text. The partial link text to find. A object the driver can use to find the elements. If is null.
(string partialLinkTextToFind)
| 258 | /// <returns>A <see cref="By"/> object the driver can use to find the elements.</returns> |
| 259 | /// <exception cref="ArgumentNullException">If <paramref name="partialLinkTextToFind"/> is null.</exception> |
| 260 | public static By PartialLinkText(string partialLinkTextToFind) |
| 261 | { |
| 262 | if (partialLinkTextToFind == null) |
| 263 | { |
| 264 | throw new ArgumentNullException(nameof(partialLinkTextToFind), "Cannot find elements when partial link text is null."); |
| 265 | } |
| 266 | |
| 267 | return new By(PartialLinkTextMechanism, partialLinkTextToFind) |
| 268 | { |
| 269 | Description = "By.PartialLinkText: " + partialLinkTextToFind |
| 270 | }; |
| 271 | } |
| 272 | |
| 273 | /// <summary> |
| 274 | /// Gets a mechanism to find elements by their tag name. |
no outgoing calls