javascript - Clear all injections in PhantomJs -


is there possibility remove injections provided by:

phantom.injectjs(scriptname); 

i clean phantom after qunit test finish.

unless reload web page without injections, not believe can remove script injections. set sort of boolean flag determine if tests have completed , reload page without injections if true.

also, can programmatically choose whether script gets injected based on application logic. example, if want inject jquery onto couple of pages, not all, can create state machine tracking page script on , determine based on current state whether inject jquery or not.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -