I need to retrieve a web element color and trying below code
Style stys=appModel.StPage().PlayButton().getNativeObject().getProperty("style", Style.class);
System.out.println(stys.getName());
But getting below exception. Please can someone help?
java.lang.ClassCastException: com.hp.lft.sdk.internal.DynamicObjectProxy cannot be cast to javax.swing.text.Style
Thanks
Devkant