Skip to main content
No Result Found

Running with hybrid apps

A guide to run with hybrid apps

Appium Java

For a hybrid app, we need to switch to native context before taking screenshot.

  • Add a helper method similar to the following example for say flutter based hybrid app:
Copy icon Copy
  • Call percyScreenshotFlutter helper function when you want to take screenshot:
Copy icon Copy
  • Note: For other hybrid apps the driver.context(“FLUTTER”); would change to context that it uses like say WEBVIEW etc.

Appium Python

Appium uses capabilities configuration to decide which devices to run your tests on. BrowserStack has a helpful Appium capabilities builder that can help you set things up. Your Percy capabilities can look something like this:

Copy icon Copy

Percy options are rather powerful. To further configure capabilities for Percy, look at this document.

For a hybrid app, we need to switch to native context before taking screenshot.

  • Add a helper method similar to the following example for say flutter based hybrid app:
Copy icon Copy
  • Call percyScreenshotFlutter helper function when you want to take screenshot:
Copy icon Copy
  • Note: For other hybrid apps the driver.switch_to.context(‘FLUTTER’) would change to context that it uses like say WEBVIEW etc.

Appium Javascript

For a hybrid app, we need to switch to native context before taking screenshot.

  • Add a helper method similar to the following example for say flutter based hybrid app:
Copy icon Copy
  • Call percyScreenshotFlutter helper function when you want to take screenshot:
Copy icon Copy
  • Note: For other hybrid apps the await driver.switchContext(‘FLUTTER’); would change to context that it uses like say WEBVIEW etc.

WebdriverIO Javascript

For a hybrid app, we need to switch to native context before taking screenshot.

  • Add a helper method similar to the following example for say flutter based hybrid app:
Copy icon Copy
  • Call percyScreenshotFlutter helper function when you want to take screenshot:
Copy icon Copy
  • Note: For other hybrid apps the await driver.switchContext(‘FLUTTER’); would change to context that it uses like say WEBVIEW etc.

C Sharp

For a hybrid app, we need to switch to native context before taking screenshot.

  • Add a helper method similar to the following example for say flutter based hybrid app:
Copy icon Copy
  • Call percyScreenshotFlutter helper function when you want to take screenshot:
Copy icon Copy
  • Note: For other hybrid apps the driver.context(“FLUTTER”); would change to context that it uses like say WEBVIEW etc.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle