getAttribute always throwing below mentioned error


#1

Code —>Mobile.getAttribute(findTestObject(‘Android/Language_Page/Content_Tab/tab_Content’), ‘selected’, 2, FailureHandling.STOP_ON_FAILURE)

Failed to get attribute ‘Object Repository/Android/Language_Page/Content_Tab/tab_Content’ on element ‘selected’ (Root cause: org.openqa.selenium.InvalidSelectorException: io.appium.uiautomator2.common.exceptions.UiSelectorSyntaxException: Could not parse expression new UiSelector().text("CONTENT").resourceId("com.graymatrix.did:id/language_tab_item_text")new UiSelector(): Expected “.” at position 91
at io.appium.uiautomator2.utils.UiExpressionParser.consumePeriod(UiExpressionParser.java:86)
at io.appium.uiautomator2.utils.UiSelectorParser.parse(UiSelectorParser.java:52)
at