Uh oh!
There was an error while loading. Please reload this page.
added whitelist - #49
Conversation
jphalip
commented
May 30, 2016
Nice, I really like this feature. Thanks for the suggestion. Here are a few comments:
Thanks! |
andreabisello
commented
Jun 1, 2016
How i can set css properties or alter visibility of WebElement using WebElement api? in documentation http://selenium-python.readthedocs.io/api.html?highlight=javascript#module-selenium.webdriver.remote.webelement i find only getter method and in stack overflow everyone use execute_script api, so i used execute_script api to make element hidden using javascript. any suggestion? thanks. |
jphalip
commented
Jun 1, 2016
My recommendation is specifically to use Then to set a CSS property on a |
2)element to be ignored now can be css selector or needle web element 3)querySelector is not used anymore in order to find the element
andreabisello
commented
Jun 6, 2016
jphalip
commented
Jun 10, 2016
Thanks for the updates. First, one small comment: I think we should assume that the provided CSS selectors might potentially return multiple elements. So, could you use Also, a note about the Regarding the tests. You could have the tests create a page with two elements in it, then take a screenshot while ignoring one of them, and then compare the resulting screenshot with a pre-generated control image. You should take a look at the existing tests for some inspiration. |
andreabisello
commented
Jun 13, 2016
@jphalip thanks for the suggestions :-) 👍 |
Now you can pass a whitelist of css selector.
If css selectors matches somethings, those elements visibility will be set to "hidden" in order to avoid screenshot comparison failures on elements that can, by nature, change.