How do you check the background image in a nightwatch?

How do you check the background image in a nightwatch? How do you make sure the background image is loaded correctly? The background image is loaded using css.

+4
source share
1 answer

Hope this helps:

browser.waitForElementVisible('.someSelector', 15000)

browser.expect.element('.someSelector').to.have.css('background-image').which.equals('url("https://www.someimage.com/image1.png")');
+1
source

Source: https://habr.com/ru/post/1649289/


All Articles