Repository navigation
v1.0.0 #297
v1.0.0
#297
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
v1.0.0
Breaking Changes
Target Framework
Appium 9 Migration
AppiumWebElementreplaced byAppiumElement. All element wrappers, constructors, and implicit operators now useAppiumElementfromOpenQA.Selenium.Appium.WindowsElement,AndroidElement, andIOSElementhave been replaced byAppiumElementin platform wrappers.WindowsDriver<WindowsElement>,AndroidDriver<AndroidElement>, andIOSDriver<IOSElement>are now simplyWindowsDriver,AndroidDriver, andIOSDriver.AddAdditionalCapabilityreplaced. UseAppiumOptionsproperties (PlatformName,DeviceName,PlatformVersion,App,AutomationName) orAddAdditionalAppiumOption()for vendor-specific capabilities.MobileCapabilityTypeenum removed. Capability constants are no longer used; capabilities are set via typed properties onAppiumOptions.Selenium 4.x Migration
RemoteWebDriverreplaced byWebDriver. All driver references, properties, and method signatures now useOpenQA.Selenium.WebDriveras the common base type. This includesAppManager.App,BasePage.App, andLegerityTestClass.App.RemoteWebElementreplaced byWebElement. All element references now useOpenQA.Selenium.WebElement. Implicit operators on element wrappers acceptWebElementinstead ofRemoteWebElement.FindElementByXPath(),FindElementById(),FindElementByName()removed. UseFindElement(By.XPath(...)),FindElement(By.Id(...)),FindElement(By.Name(...))instead.Removed Browser Support
WebAppDriverType.Opera) - removed, Opera browser support was dropped in Selenium 4.WebAppDriverType.InternetExplorer) - removed, IE is end-of-life.WebAppDriverType.EdgeChromium) - removed, redundant sinceWebAppDriverType.Edgeis Chromium-based by default in Selenium 4.Removed Dependencies
Microsoft.Edge.SeleniumTools- removed. Edge is now handled natively by Selenium 4'sEdgeDriver.Removed Packages
Legerity.MADE- removed. MADE.NET control wrappers (DropDownList,InputValidator).Legerity.Telerik.Uwp- removed. Telerik UWP control wrappers (RadAutoCompleteBox,RadBulletGraph,RadBusyIndicator,RadNumericBox).Legerity.WCT- removed. Windows Community Toolkit control wrappers (BladeView,Carousel,Expander,InAppNotification,RadialGauge).New Features
Standalone Windows Driver
Legerity.WindowsDriveris a standalone WebDriver server that launches native Windows desktop apps, attaches to existing windows, and interacts with controls through Windows UI Automation. Self-contained executables for Windows x64 and ARM64 are available from GitHub Releases.Use the driver with the Legerity framework or connect directly with Appium's .NET
WindowsDriverclient without installing Legerity or running a separate Appium server. See the Windows Driver documentation for setup and usage.Fluent Selector Chaining
A new fluent API for composing element locator queries, available as extension methods on
By:Simple shortcuts (extend any
Bylocator):.WithText(text)- match elements with exact text content.WithPartialText(text)- match elements with partial text content.WithAttribute(name, value)- match elements with an exact attribute value.WithPartialAttribute(name, value)- match elements with a partial attribute value.And(otherBy)- combine with another locator (intersection).ThenFind(childBy)- find children within matched elementsBuilder API (for complex multi-constraint queries):
.That(by => ...)- add same-element constraints via a builder (intersection).ThenFind(by => ...)- scope into children via a builder (nesting)Builder methods:
.TagName(),.Id(),.ClassName(),.CssSelector(),.XPath(),.Name(),.HasText(),.HasPartialText(),.HasAttribute(),.HasPartialAttribute(),.Matching(By)Platform-specific builder extensions:
.HasAutomationId(),.WithAutomationId(),.ThenFindByAutomationId().HasContentDescription(),.HasPartialContentDescription(),.WithContentDescription(),.WithPartialContentDescription().HasLabel(),.HasPartialLabel(),.HasValue(),.HasPartialValue(),.WithLabel(),.WithPartialLabel(),.WithValue(),.WithPartialValue().HasInputType(),.ThenFindByInputType(),.ThenFindListItems(),.ThenFindOptions(),.ThenFindTableRows()Example usage:
Bug Fixes
ByAllIntersection LogicByAll.FindElements()queries each locator it evaluates only once. It uses hash-based membership when comparing standardWebElementandAppiumElementinstances, and falls back toEquals()when custom wrappers are involved. Matching elements retain their order and any duplicates from the first locator's results.Thread-Safe Driver Lifecycle
AppManager.Appis scoped to the current execution context. Pass the driver explicitly across separate setup, test, and teardown callbacks;AppManager.BeginAppScope()is for awaited helpers within a single callback.AppManager.Appstracks running drivers through a concurrent dictionary.AppManager.StopApp()now usesTryRemovefor idempotent cleanup. Only the first caller to remove a driver will callQuit(), preventingObjectDisposedExceptionwhen multiple threads attempt cleanup.LegerityTestClass.Appuses the same ambient driver as parameterless page objects. Explicit launch options no longer overwrite the defaults on a fixture shared by parallel tests.LegerityTestClass.appsnow usesConcurrentBag<WebDriver>for thread-safe collection access.Resilient Driver Disposal
AppManager.StopApp()andAppManager.StopApps()now catch exceptions duringQuit()to handle partially initialized or already-disposed drivers gracefully, preventing teardown failures from masking real test failures.Migration Guide
Updating Element Wrapper Code
Updating Driver References
Updating Appium Options
Updating Browser Configuration
This discussion was created from the release v1.0.0.
All reactions