-
Notifications
You must be signed in to change notification settings - Fork 41
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
Hide elements in dom. #115
Comments
it is way to do that. .evaluate(_ => {
document.querySelector('#target').style.opacity = '0'
}) |
That returns a
Code--
It looks like it executes the code before the page is loaded. |
does this works? chromy
.wait(2500)
.goto(scenario.url)
.evaluate(_ => {
var elementExists = document.getElementsByClassName(".searchbarX div .hidden-lower-xl");
if (elementExists) {
document.querySelector('.searchbarX div .hidden-lower-xl').style.opacity = '0'
}
})
.end() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have certain elements I don't want to show on my screenshots. Any way to hide them using Chromy?
The text was updated successfully, but these errors were encountered: