feat: Support for Appium Chrome Dev Protocol Commands by jayandran-Sampath · Pull Request #1375 · appium/java-client

Change list

Client integration for Appium Chrome browser CDP Command support. Enable user to use chrome dev tool protocol commands in appium java client

new Endpoint : /session/:sessionId/goog/cdp/execute

Types of changes

What types of changes are you proposing/introducing to Java client?
Put an x in the boxes that apply

  • No changes in production code.
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Details

Code Sample

Example 1 : Without Parameters
driver.executeCdpCommand("Page.getCookies")

Example 2 : With Parameters
Map<String,Object> params = new HashMap();
params.put("latitude", 13.0827);
params.put("longitude",80.2707);
params.put("accuracy",1);
driver.executeCdpCommand("Emulation.setGeolocationOverride",params);