web_renderjs_ui_test: more robust way of waiting for CKEditor
To answer question in the comment: > How to inspect inside another iframe? use selectFrame (after waiting for the frame to be added in the DOM of course). Reference of selenium commands: https://web.archive.org/web/20160807232621/http://release.seleniumhq.org/selenium-core/1.0.1/reference.html#selectFrame (I'm not sure it's still on the web)
Showing
-
Owner
@frequent I see we have https://www.erp5.com/documentation/erp5-HowTo.Write.Zelenium.Tests#%C2%A0standard-zelenium-commands which is incomplete. The reference I used is https://web.archive.org/web/20160807232621/http://release.seleniumhq.org/selenium-core/1.0.1/reference.html#selectFrame
👴🏽 -
Thanks @jerome This change can be applied in other tests also where we use iframes. Way more simplified than using
querySelector
I'll try to use it and commit.
-
Owner
Yes, it's simpler and we don't have to use sleep, which cause test to be unreliable.
The trick is also that
selenium.browserbot.getCurrentWindow()
returns the current window, soselectFrame
influences this.
Please register or sign in to comment