我要提取的頁面上有一個內部文字元素。 所以我做: element(by.xpath('//*[@id="searchQuery"]')).getText().then(function (text){ return text; });
確定! 回上一頁