You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
I see that this method is deprecated in serenity-screenplay-webdriver 3.1.5 version
public T viewedBy(Actor actor) {
try {
return (T) type.getConstructor(Target.class, Actor.class).newInstance(target, actor);
} catch (Exception e) {
logger.error("Failed to instantiate UIStateReader of type " + type, e);
throw new IllegalStateException("Failed to instantiate UIStateReader of type " + type, e);
}
}
What is the better way instead of using this?
Thank you!
The text was updated successfully, but these errors were encountered:
Hello
I see that this method is deprecated in serenity-screenplay-webdriver 3.1.5 version
public T viewedBy(Actor actor) {
try {
return (T) type.getConstructor(Target.class, Actor.class).newInstance(target, actor);
} catch (Exception e) {
logger.error("Failed to instantiate UIStateReader of type " + type, e);
throw new IllegalStateException("Failed to instantiate UIStateReader of type " + type, e);
}
}
What is the better way instead of using this?
Thank you!
The text was updated successfully, but these errors were encountered: