-
Greetings! Is it possible to pass some java script to execute on the page before taking a snapshot? Tried like this, no result:
I am trying to remove a dynamic element from the page that is causing snapshot comparisons to fail. Kind regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @s-petrov8! In SDKs that have full on test harnesses you would execute JS before calling |
Beta Was this translation helpful? Give feedback.
-
Hi @Robdel12, I assumed the 'execute' option would execute the java script only on the Percy side when processing the snapshots, thereby leaving the page in the Selenium tests unaffected. That would have been ideal for my case since I am interacting with the element later in my tests and it makes no sense to hide it. Your suggestion is possible as a work around though! Thanks for your reply! |
Beta Was this translation helpful? Give feedback.
Hey @s-petrov8! In SDKs that have full on test harnesses you would execute JS before calling
Percy.Snapshot
. In this specific example you would use Selenium's js execute before callingPercy.Snapshot