更换百合会签到
This commit is contained in:
parent
d56d6edf19
commit
6eedb9786e
@ -69,9 +69,9 @@ public class BaiHeHui extends Model {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
driver.navigate().refresh();
|
driver.navigate().refresh();
|
||||||
driver.get("https://bbs.yamibo.com/forum.php");
|
driver.get("https://bbs.yamibo.com/plugin.php?id=zqlj_sign");
|
||||||
for (WebElement element : driver.findElements(By.xpath("//a"))) {
|
for (WebElement element : driver.findElements(By.xpath("//a"))) {
|
||||||
if ("打卡签到".equals(element.getText())) {
|
if ("点击打卡".equals(element.getText())) {
|
||||||
element.click();
|
element.click();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user