(id: number)
| 165 | }; |
| 166 | |
| 167 | const getElement = async (id: number) => { |
| 168 | let label = null; |
| 169 | let button = null; |
| 170 | |
| 171 | if (driver.platformName.toLowerCase().includes("ios")) { |
| 172 | label = await driver.findElementByAccessibilityId( |
| 173 | "label: " + id.toString()); |
| 174 | |
| 175 | button = await driver.findElementByAccessibilityId( |
| 176 | id.toString()); |
| 177 | } else { |
| 178 | label = await driver.findElementByAutomationText( |
| 179 | "label: " + id.toString()); |
| 180 | |
| 181 | button = await driver.findElementByAutomationText( |
| 182 | id.toString()); |
| 183 | } |
| 184 | |
| 185 | return { label, button }; |
| 186 | }; |
| 187 | }); |
| 188 |
no test coverage detected