I needed to wait for an element to load first before getting the page source: WebDriverWait wait = new WebDriverWait(driver, SECONDS); wait.
確定! 回上一頁