How to use the appium-flutter-finder.byTooltip function in appium-flutter-finder

To help you get started, we’ve selected a few appium-flutter-finder examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github truongsinh / appium-flutter-driver / example / nodejs / src / index.js View on Github external
action: 'longPress',
     element: { elementId: buttonFinder }
    },
  ]);

  await driver.saveScreenshot('./flutter-longPress.png');  

  await driver.elementClick(buttonFinder);
  await driver.touchAction({
    action: 'tap',
    element: { elementId: buttonFinder }
  });

  assert.strictEqual(await driver.getElementText(counterTextFinder), '2');

  await driver.elementClick(find.byTooltip('Increment'));

  assert.strictEqual(
    await driver.getElementText(
      find.descendant({
        of: find.byTooltip('counter_tooltip'),
        matching: find.byValueKey('counter')
      })
    ),
    '3'
  );

  await driver.elementClick(find.byType('FlatButton'));
  await driver.execute(
    'flutter:waitForAbsent',
    buttonFinder
  );
github truongsinh / appium-flutter-driver / example / nodejs / src / index.js View on Github external
await driver.saveScreenshot('./flutter-longPress.png');  

  await driver.elementClick(buttonFinder);
  await driver.touchAction({
    action: 'tap',
    element: { elementId: buttonFinder }
  });

  assert.strictEqual(await driver.getElementText(counterTextFinder), '2');

  await driver.elementClick(find.byTooltip('Increment'));

  assert.strictEqual(
    await driver.getElementText(
      find.descendant({
        of: find.byTooltip('counter_tooltip'),
        matching: find.byValueKey('counter')
      })
    ),
    '3'
  );

  await driver.elementClick(find.byType('FlatButton'));
  await driver.execute(
    'flutter:waitForAbsent',
    buttonFinder
  );

  assert.strictEqual(
    await driver.getElementText(find.byText('This is 2nd route')),
    'This is 2nd route'
  );