export function getElementByText ( text ) { return driver . isAndroid ? $ ( `android=new UiSelector().text("${ text }")` ) : $ ( `~${ text }` ) ; } export function getTextInputByPlaceholder ( placeholder ) { return driver . isAndroid ? $ ( `//android.widget.EditText[@text="${ placeholder }"]` ) : $ ( `~${ placeholder }` ) ; }