update
This commit is contained in:
parent
accead7817
commit
bfe7ec77ab
@ -56,6 +56,7 @@ public class NicePT extends Model {
|
|||||||
try {
|
try {
|
||||||
driver.manage().timeouts().implicitlyWait(10000, TimeUnit.SECONDS);
|
driver.manage().timeouts().implicitlyWait(10000, TimeUnit.SECONDS);
|
||||||
driver.get(url);
|
driver.get(url);
|
||||||
|
driver.navigate().refresh();
|
||||||
for (Cookie _cookie : WebClient.loadCookie(array)) {
|
for (Cookie _cookie : WebClient.loadCookie(array)) {
|
||||||
driver.manage().addCookie(_cookie);
|
driver.manage().addCookie(_cookie);
|
||||||
}
|
}
|
||||||
|
@ -71,6 +71,7 @@ public class Tsdm extends Model {
|
|||||||
WebDriver driver = WebClient.getInstance().getWebDriver();
|
WebDriver driver = WebClient.getInstance().getWebDriver();
|
||||||
try {
|
try {
|
||||||
driver.get("https://www.tsdm39.net/forum.php");
|
driver.get("https://www.tsdm39.net/forum.php");
|
||||||
|
driver.navigate().refresh();
|
||||||
getTsdm(array, driver);
|
getTsdm(array, driver);
|
||||||
boolean isSign = false;
|
boolean isSign = false;
|
||||||
for (WebElement element : driver.findElements(By.xpath("//a"))) {
|
for (WebElement element : driver.findElements(By.xpath("//a"))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user