Not able to identify the MenuList button via Xpath's


#1

Hi,

I am using appium version 1.8.2. When I am trying to find element(usually by xpath), but getting below error:
javax.xml.transform.TransformerException: Expected ], but found: ,
For documentation on this error, please visit: http://seleniumhq.org/exceptions/invalid_selector_exception.html
Build info: version: ‘3.13.0’, revision: ‘2f0d292’, time: ‘2018-06-25T15:32:14.902Z’
System info: host: ‘WLE17C0D’, ip: ‘10.1.18.36’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_172’
*** Element info: {Using=xpath, value=//android.widget.TextView[contains[@content-desc,‘Volume’]]}

and also when i try to inspect the element via Appium Desktop, it is closes unexpectedly.

FYI, I am trying to inspect a Menu List button.

Below are the other xpath’s I have tried.
MobileElement menuListBox = driver.findElement(By.xpath("//*[android.widget.TextView[@resource-id=‘com.myapp:id/action_more’]]"));

Actions action = new Actions(driver);
action.moveToElement(menuListBox).click().build().perform();

Can anyone please tell me what needs to be done