2014-05-22 15 views
0

我試圖訪問我的測試代碼,打開第二窗口:在DalekJS使用.toWindow的

.click('.footer-content li:nth-child(thisItem)') 
.toWindow('http://thisDomain.com') 
.assert.title().to.contain(thisTitle) 
.toParentWindow() 

我可以看到正確的頁面在瀏覽器中打開,但測試仍返回標題原始頁面。我是否正確使用.toWindow?

回答

相關問題