appium / java-client

Java language binding for writing Appium Tests, conforms to W3C WebDriver Protocol
Apache License 2.0
1.22k stars 758 forks source link

chore: Avoid sending unnecessary requests if corresponding extensions are absent #1903

Closed mykola-mokhnach closed 1 year ago

mykola-mokhnach commented 1 year ago

Change list

As @KazuCocoa mentioned in https://github.com/appium/python-client/pull/856#issuecomment-1529498871 the change could slow down user scripts, especially if the server runs in cloud env, and we send two requests instead of one (e.g. the server is running an older driver version which does not support the given mobile endpoint yet). In such case we want to remember if the given API is actually supported by the given driver instance, so next time we don't need to call the server twice, and thus save some time on each request.

Types of changes