IsVisible #50
-
First I want to say thank you to the ScreenPy community for the great Python product. I'm working to upgrade our instance of ScreenPy to > v4 and I'm having trouble with an IsVisible method that was in the resolutions class, but seems to have been deprecated. Is there any information on what I should use to replace that call with? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @mackthehack! Thanks for reaching out, we're still in the phase where it's cool to hear about others using this project. :D Yes, part of the upgrade to version 4 was to break ScreenPy apart at the Abilities level.
from screenpy.abilities import BrowseTheWeb
from screenpy.resolutions import IsVisible to from screenpy_selenium.abilities import BrowseTheWeb
from screenpy_selenium.resolutions import IsVisible We also have this page in the documentation that goes through everything more thoroughly: https://screenpy-docs.readthedocs.io/en/latest/deprecations.html#breaking-changes Let us know if that works! Also let us know if it doesn't! |
Beta Was this translation helpful? Give feedback.
Hi @mackthehack! Thanks for reaching out, we're still in the phase where it's cool to hear about others using this project. :D
Yes, part of the upgrade to version 4 was to break ScreenPy apart at the Abilities level.
IsVisible
needs theBrowseTheWeb
Ability, which enables using Selenium, so it was moved over toscreenpy-selenium
. To get access, you'll need to make these changes:screenpy
toscreenpy[selenium]
to installscreenpy
andscreenpy-selenium
.to