Skip to content

Commit 6ea110f

Browse files
authored
Implement FindChildElements for IElement +semver: feature (#72)
* 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
1 parent 8ed1367 commit 6ea110f

File tree

12 files changed

+396
-47
lines changed

12 files changed

+396
-47
lines changed

Aquality.Selenium.Core/src/Aquality.Selenium.Core/Aquality.Selenium.Core.xml

+110-26
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Aquality.Selenium.Core/src/Aquality.Selenium.Core/Elements/Element.cs

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Collections.Generic;
23
using Aquality.Selenium.Core.Applications;
34
using Aquality.Selenium.Core.Configurations;
45
using Aquality.Selenium.Core.Elements.Interfaces;
@@ -76,6 +77,11 @@ public T FindChildElement<T>(By childLocator, string name = null, ElementSupplie
7677
return Factory.FindChildElement(this, childLocator, name, supplier, state);
7778
}
7879

80+
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
81+
{
82+
return Factory.FindChildElements(this, childLocator, name, supplier, expectedCount, state);
83+
}
84+
7985
public string GetAttribute(string attr)
8086
{
8187
LogElementAction("loc.el.getattr", attr);

0 commit comments

Comments
 (0)