Skip to content

Commit

Permalink
获取fp,eid卡住问题修复【京东更新页面导致】
Browse files Browse the repository at this point in the history
  • Loading branch information
zqjzqj committed Jan 13, 2021
1 parent 1910da8 commit 6bccc4c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions secKill/jdSecKill.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,10 @@ func (jsk *jdSecKill) GetEidAndFp() chromedp.ActionFunc {
_ = chromedp.Sleep(1 * time.Second).Do(ctx)
_ = chromedp.Click("#GotoShoppingCart").Do(ctx)
//_ = chromedp.Navigate("https://cart.jd.com/cart_index/").Do(ctx)
_ = chromedp.WaitVisible("#cart-body").Do(ctx)
_ = chromedp.Click(".common-submit-btn").Do(ctx)
_ = chromedp.WaitVisible("container", chromedp.ByID).Do(ctx)
_ = chromedp.ScrollIntoView(".submit-btn").Do(ctx);
_ = chromedp.Sleep(1 * time.Second).Do(ctx);
_ = chromedp.Click(".submit-btn").Do(ctx)
//_ = chromedp.WaitVisible("#mainframe").Do(ctx)
ch, cc := chromedpEngine.WaitDocumentUpdated(ctx)
defer cc()
Expand Down

0 comments on commit 6bccc4c

Please sign in to comment.