neet...@gmail.com
unread,Mar 4, 2013, 6:17:08 AM3/4/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to appium-...@googlegroups.com
I started to use appium and writing tests in java using selenium. When I tried doing the below, I found the error
WebElement newButton = driver.findElement(By.name("adInit"));
Assert.assertTrue(newButton.isEnabled, "The button was enabled");
The newButton.isEnabled() is giving back a long value as 1 and is not able to convert from long to boolean.
The appium logs show
Responding to client with success: {"status":0, "value":1, "sessionId":"bf6c....."}
The value passed from the client is 1 but is expecting true.
Any idea how I verify if the button is enabled?