Check if JS file is included
How can I check if a js file is included in my web page? I had a look of a lot of Selenium 开发者_JS百科Documentations, but i did not find what i want.
Thanks a lot for you reply.
I found the answer of my own question (with the JUnit 3 format):
verifyTrue(selenium.isElementPresent("//script[@type='text/javascript'][contains(@src,'my.js')]"));
精彩评论