2
我正在開發一個android項目,我需要從WebView
的網站驗證一些數據。有沒有什麼辦法從WebView
拉URL鏈接?我的WebView
不顯示地址欄,其隱藏。Appium:如何在webview中獲取URL
我一直在使用
Set<String> contextNames = driver.getContextHandles();
for (String contextName : contextNames) {
System.out.println(contextNames);
}
driver.context((String) contextNames.toArray()[1]);
driver.context("WEBVIEW");
driver.getcurrentURL();
}
請張貼一些代碼嘗試,它會更容易明白究竟你在做什麼。 – Andry 2015-01-10 10:32:13