Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is an alternative way to use viewBy in UIStateReaderBuilder #25

Open
cuongld2 opened this issue Dec 5, 2021 · 0 comments
Open
Labels

Comments

@cuongld2
Copy link

cuongld2 commented Dec 5, 2021

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants