An unknown server-side error occurred while processing the command. Original error: unknown error: a.getAttributeNode is not a function


#1

I’m trying to write automation code for https://www.corteva.ca/

I’m trying to retrieve attribute value by using getAttribute.
String ActualValue = driver.findElement(By.xpath("//div[@data-componentname=‘globalHeader’]")).getAttribute(“data-componentname”);
Assert.assertEquals(“data-componentname”,ActualValue,“Message”);

When i run script on laptop(https://www.corteva.ca/) - Running fine
When i run same script on google phone(https://www.corteva.ca/) - Getting below error.

Exception in thread “main” org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: unknown error: a.getAttributeNode is not a function
(Session info: chrome=70.0.3538.110)

Could anybody please help me.

Please see appium logs - https://gist.github.com/arkadiyala/bdbf1a5a8da3d3a27c19479aaba1c506/revisions#diff-ceb13adefa11d874976cfcea7041e1b8