Skip to content

Instantly share code, notes, and snippets.

@hyperh
Created September 12, 2017 03:00
Show Gist options
  • Select an option

  • Save hyperh/be181e69c3fdaa6e840fd7b30dc65ac7 to your computer and use it in GitHub Desktop.

Select an option

Save hyperh/be181e69c3fdaa6e840fd7b30dc65ac7 to your computer and use it in GitHub Desktop.
test('appium button click', async () => {
expect(await driver.hasElementByAccessibilityId('button')).toBe(true);
await driver.elementByAccessibilityId('button')
.click()
.click();
const counter = await driver.elementByAccessibilityId('counter').text();
expect(counter).toBe('2');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment