Skip to content

Commit

Permalink
feat: add driver method for list item's
Browse files Browse the repository at this point in the history
  • Loading branch information
tzvielwix committed Feb 18, 2025
1 parent e0aab53 commit de0919a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/drivers/appium/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ export class WebdriverIOAppiumFrameworkDriver
description: "Locate an element using an iOS NSPredicate string.",
example: `const el = await driver.$('ios=predicate string:type == "XCUIElementTypeButton" AND name == "Login"');`,
},
{
signature: `driver.$$('#elementSelector')`,
description:

Check failure on line 86 in packages/drivers/appium/index.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `⏎···············`
"Locate all elements with a given selector",
example: `const firstSite = await driver.$$('#Site')[index];`,
},
{
signature: `driver.$('//*[@text="Login"]')`,
description: "Locate an element using an XPath expression.",
Expand All @@ -100,7 +106,9 @@ export class WebdriverIOAppiumFrameworkDriver
{
signature: `.click()`,
description: "Clicks (taps) an element.",
example: `await (await driver.$('~loginButton')).click();`,
example: `
await (await driver.$('~loginButton')).waitForEnabled();
await (await driver.$('~loginButton')).click();`,
},
{
signature: `.setValue(value: string)`,
Expand Down Expand Up @@ -152,6 +160,7 @@ await (await driver.$('~draggable')).dragAndDrop(
{
title: "Assertions",
items: [

Check failure on line 162 in packages/drivers/appium/index.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `⏎`

{
signature: `toBeDisplayed()`,
description: "Asserts that the element is displayed (visible).",
Expand Down

0 comments on commit de0919a

Please sign in to comment.