It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center
                            
                        
                    
                
                                7年前关闭。
            
                    
我正在开发一个具有第三方编辑器(ck编辑器)的应用程序。
我无法记录使用Selenium IDE在编辑器上执行的操作。
请建议我解决方案,以便我可以记录这些操作。

最佳答案

您可以使用ckeditor库javascript来设置ckEditor实例的内容。我用下面的解决方案

runScript
CKEDITOR.instances['body'].setData('<p>testContent</p>');


更改“ body”为您的ckEditor实例的名称

关于testing - 如何借助 Selenium 捕获编辑器数据? ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/8739988/

10-16 22:34