switch to a frame with Nightwatch.js
问题 the UI I am testing is using an iframe. I am trying to switch to that iframe with the ".frame(0)" call. module.exports = { "test" : function (browser) { browser .url("my_url") .waitForElementVisible(".frame-application-scroll-wrapper", 30000) .frame(0) .waitForElementPresent("#page-content", 30000) .end(); } }; However, #page-content is never seen which makes me think that the change frame command did not work (but returns no error neither). Any ideas? Thanks, Paul 回答1: as Neoaptt mentioned