Skip to content

Commit

Permalink
Implement FindChildElements for IElement +semver: feature (#72)
Browse files Browse the repository at this point in the history
* Implement FindChildElements in IElementsFactory, resolves #67.

* Fixes #71 (dotted xpath locator split issue).

* Fix GenerateXPathLocator method for ByChained type of locator.

* Implement XPath extraction logic
  • Loading branch information
mialeska authored May 22, 2020
1 parent 8ed1367 commit 6ea110f
Show file tree
Hide file tree
Showing 12 changed files with 396 additions and 47 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using Aquality.Selenium.Core.Applications;
using Aquality.Selenium.Core.Configurations;
using Aquality.Selenium.Core.Elements.Interfaces;
Expand Down Expand Up @@ -76,6 +77,11 @@ public T FindChildElement<T>(By childLocator, string name = null, ElementSupplie
return Factory.FindChildElement(this, childLocator, name, supplier, state);
}

public IList<T> FindChildElements<T>(By childLocator, string name = null, ElementSupplier<T> supplier = null, ElementsCount expectedCount = ElementsCount.Any, ElementState state = ElementState.Displayed) where T : IElement
{
return Factory.FindChildElements(this, childLocator, name, supplier, expectedCount, state);
}

public string GetAttribute(string attr)
{
LogElementAction("loc.el.getattr", attr);
Expand Down
Loading

0 comments on commit 6ea110f

Please sign in to comment.