i need to capture the footer section of the page only #86
Unanswered
brunofelix1711
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hey @brunofelix1711! Percy can't really capture specific parts of the page. There is a way to do this, though. You can get creative and use Percy CSS to hide all the elements on the page that aren't what you want to capture. How this is done is very dependent on your pages CSS, though, so I can't give any code that would work. The general idea is something like: driver.get("https://example.com");
percy.snapshot('Footer', null, 300, false, "* {visibility: none; } .footer-selector { visibility: visible !important; }"); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I am using selenium java BDD framework , I need to capture the specific region or section of the page like footer section but when I use the below code , I did not get the screen shot in Percy dashboard , kindly advise .
Beta Was this translation helpful? Give feedback.
All reactions