()
| 700 | } |
| 701 | |
| 702 | func (b *BrowserTab) NavigateBack() { |
| 703 | |
| 704 | // Some sites hang indefinitely with chromedp.NavigateBack() - see issue: https://github.com/chromedp/chromedp/issues/1346 |
| 705 | // entries := []*page.NavigationEntry{} |
| 706 | // currentEntry := int64(0) |
| 707 | // chromedp.Run(b.Context, chromedp.NavigationEntries(¤tEntry, &entries)) |
| 708 | // if int(currentEntry) >= 1 { |
| 709 | // b.Do(chromedp.NavigateBack()) |
| 710 | // } |
| 711 | |
| 712 | b.Do(chromedp.EvaluateAsDevTools("history.back()", nil)) |
| 713 | |
| 714 | } |
| 715 | |
| 716 | func (b *BrowserTab) NavigateForward() { |
| 717 | // entries := []*page.NavigationEntry{} |
no test coverage detected