fix windows quit

This commit is contained in:
eson
2020-08-04 14:12:00 +08:00
parent 93ec2e78a6
commit 826d15876a
3 changed files with 6 additions and 8 deletions

View File

@@ -29,12 +29,12 @@ func (cl *UserList) Execute() {
//article//a[@data-a-target='preview-card-title-link']
wd := intimate.GetChromeDriver(3030)
defer wd.Quit()
ps := intimate.NewPerfectShutdown()
counter := intimate.NewCounter()
counter.SetMaxLimit(100)
counter.SetMaxToDo(func(olist ...interface{}) error {
owd := olist[0].(*selenium.WebDriver)
(*owd).Close()
(*owd).Quit()
*owd = intimate.GetChromeDriver(3030)
return nil