This commit is contained in:
Yutousama 2022-05-03 10:11:04 +08:00
parent accead7817
commit bfe7ec77ab
2 changed files with 4 additions and 2 deletions

View File

@ -56,6 +56,7 @@ public class NicePT extends Model {
try {
driver.manage().timeouts().implicitlyWait(10000, TimeUnit.SECONDS);
driver.get(url);
driver.navigate().refresh();
for (Cookie _cookie : WebClient.loadCookie(array)) {
driver.manage().addCookie(_cookie);
}

View File

@ -71,6 +71,7 @@ public class Tsdm extends Model {
WebDriver driver = WebClient.getInstance().getWebDriver();
try {
driver.get("https://www.tsdm39.net/forum.php");
driver.navigate().refresh();
getTsdm(array, driver);
boolean isSign = false;
for (WebElement element : driver.findElements(By.xpath("//a"))) {