cleditor

Using C# with selenium and cleditor

主宰稳场 提交于 2019-11-29 17:34:50
I want to be able to set the body for a cleditor text field using selenium in c#, but this process seems to be very difficult. Can anyone explain it like i'm 4 years old? The basic Selenium logic is you find the element first, then perform actions to it. However, in this case, you have the following difficulties: the editor is in an iframe the iframe doesn't have id, name or even meaningful src the editor is not an input or textarea, but the body itself. How to navigate into iframes (Arran's link should be a good tutorial to look at) Use Firefox+Firebug+Firepath to find iframes. As you can see