MCPcopy Index your code
hub / github.com/NativeScript/nativescript-angular / getElement

Function getElement

e2e/renderer/e2e/ngforof.e2e-spec.ts:167–186  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

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

Callers 3

addElementFunction · 0.85
checkAppendedCorrectlyFunction · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected