appium-boneyard / appium-plugins

Officially-maintained plugins for the Appium server
Apache License 2.0
32 stars 7 forks source link

[relaxed-caps-plugin] Invoke next() callback after modifying the capabilities #100

Open sudharsan-selvaraj opened 2 years ago

sudharsan-selvaraj commented 2 years ago

When the relaxed-caps plugin is used along with any other plugins, hande method present in other activated plugins is not invoked by appium.

Instead of creating a new session directly from the plugin, invoke next method so that other plugins will also get notified about the new session.

Scenario Start appium server and load relaxed-caps and appium-device-farm plugin together. Now when new session is requested from the client, device-farm plugin will never be notified, since the relaxed caps plugin will handle the request and the next function is not being called. So this will block the users from trying out other plugins without updating their appium client version.

jlipps commented 2 years ago

OK, thanks for the report