javascript - Programmatically edit CodeMirror contents without access to object -


I am using Selenium to run an automated test on a page that has a CodeMirror Editor. I do not have access to the object, but I have jQuery available. How can I edit the contents of the editor in such a way that the codemaker accepts change?

wrapping div DOM element (Class CodeMirror ) Will be a property CodeMirror which refers to the editor instance object you can call it on setValue .


Comments

Popular posts from this blog

python - rpy2 import is not working -

c++ - How to load a bitmap from file into the samples buffer -

javascript - How to get MySQL query result returned using $.ajax -