我的AngularJS web應用程序有一堆e2e測試。這是我當前的protractor.config.js文件: // __dirname retuns a path of this particular config file
// assuming that protractor.conf.js is in the root of the project
var basePath = _
所以我有一個頁面有一個框架,並在該框架中的另一個視圖。如何找到視圖內的元素並對其進行測試?我知道如何訪問該框架,然後在查看之後定位視圖非常混亂。 我的問題看起來與此類似:How do I locate elements in protractor that are in other views and are not visible when viewing page source