How to use assertions in appium on android devices? – pCloudy – Question and Answers
Home >> Appium Tricks and Tricks >> How to use assertions in appium on ...

How to use assertions in appium on android devices?



  WebElement result= (WebElement) 
  driver.findElement(By.xpath("//android.widget.Button[@resourceid='com.pcloudy.appiumdemo:id/TextButton']"));
  Assert.assertEquals(result.getText(), "pcloudy");

Leave a Reply

Your email address will not be published. Required fields are marked *