dotnet-client icon indicating copy to clipboard operation
dotnet-client copied to clipboard

Driver.Execute overrides do not work for WebElement's methods

Open chesunn opened this issue 6 months ago • 2 comments

Description

Somewhere between Selenium 4.9.1 and 4.29.0 WebElement s started using InternalExecute instead of the protected Execute method on the driver.

The effect is that whatever method you call on an element (e.g Clear, SendKeys, GetAttribute) does not go through AppiumDriver's protected override Response Execute(string driverCommandToExecute, Dictionary<string, object> parameters) or any other overrides of the method - bypassing any extensions made in user code as well.

Running with Selenium 4.31.0 which includes [dotnet] Unify protected and internal Execute methods does not exhibit this behaviour, thus #940 or #946 would be enough to fix this.

Environment

  • .NET client build version or git revision if you use some snapshot: 7.2.0

chesunn avatar Jul 01 '25 08:07 chesunn

The next version will bump up the deps version. https://github.com/appium/dotnet-client/pull/940 or with https://github.com/appium/dotnet-client/pull/955 as well

KazuCocoa avatar Aug 16 '25 01:08 KazuCocoa

@chesunn, can you please check with the latest version? https://github.com/appium/dotnet-client/releases/tag/v8.0.1

Dor-bl avatar Oct 06 '25 21:10 Dor-bl