I'm working on selenium and I have to automate tinyMCE in my web page.
I tried many ways but always get null
for code below:
(String)js.executeScript("tinyMCE.activeEditor.getBody().isContentEditable");
I'm working on selenium and I have to automate tinyMCE in my web page.
I tried many ways but always get null
for code below:
(String)js.executeScript("tinyMCE.activeEditor.getBody().isContentEditable");
You need to add return
to the front of your JS script, e.g.
(String)js.executeScript("return tinyMCE.activeEditor.getBody().isContentEditable");