appium / dotnet-client

Extension to the official Selenium dotnet webdriver
Apache License 2.0
381 stars 186 forks source link

PageFactory and ExpectedConditions are Obsolete. #770

Closed gshuchi closed 5 months ago

gshuchi commented 5 months ago

Since, the above are obsolete. DotNetSeleniumExtras can be used. But the DotNet Client's Wiki for Appium has - PageFactory.InitElements(context, screenOrPage , new AppiumPageObjectMemberDecorator()); Now, here error comes that -"PageFactory does not exist in the current context." I'm trying to automate an Native App which is present on both Android & iOS Platforms. Then How can we define elements for both iOS & Android to execute them in Parallel. Kindly update the DotNet Client Documentation with Latest Appium 2.x.x. examples in a more easy way

Screenshot 2024-04-08 at 18 56 23
Dor-bl commented 5 months ago

@gshuchi, What appium dotnet client are you using?

gshuchi commented 5 months ago

Hey @Dor-bl. Thanks for checking this issue. Please find the Dependencies list of my project -

Screenshot 2024-04-12 at 23 06 23
Dor-bl commented 5 months ago

You are using an out of support version of this client. I suggest you update to version 5.x. Thing is page objects is obsolete on that version. Maybe you can try and find another alternative.

gshuchi commented 5 months ago

@Dor-bl please tell which dependency i have to remove/update to version 5.x. I 'm new to the appium with C# on dotnet platform. I came from Appium with Java. But I'm continuously referring to Wiki of this repo for PageObjects & other iOS & Android stuff.

KazuCocoa commented 5 months ago

Appium.WebDriver 4.4.5 should be v5 rc https://www.nuget.org/packages/Appium.WebDriver/absoluteLatest#versions-body-tab https://github.com/appium/dotnet-client?tab=readme-ov-file#v5-release-candidate

gshuchi commented 5 months ago

@Dor-bl @KazuCocoa Thanks a ton!