nightwatchjs / nightwatch

Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack
https://nightwatchjs.org
MIT License
11.79k stars 1.31k forks source link

find special style sheet #1755

Closed xxholly32 closed 6 years ago

xxholly32 commented 6 years ago

i wiil test my company if all project is using my special style sheet !

so i test my project if it had files like xx.css or test some dom witch not exist had special style .

but nightwatch cannt do all this, please let me add dom in my project。

sandeepthukral commented 6 years ago

@xxholly32 Please ask this question on the Google Groups forum https://groups.google.com/forum/#!forum/nightwatchjs

I guess English is not your first language, but I could not understand your question. Please rewrite the question and, if you can, provide some real-world examples of what you want to see.

xxholly32 commented 6 years ago

@sandeepthukral

Can use javascript code inside nightwatch

browser
      .url(devServer)
      .waitForElementVisible('#app', 5000)
     // i want do this
     document.querySelector("#app").style.backgroundColor = "red";
     .end()
ghost commented 6 years ago

@xxholly32 Hello. You cau use nightwatch API browser.css(cssProperty) this