Documentation ¶
Overview ¶
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
using examples from: https://github.com/chromedp/chromedp/issues/835
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Index ¶
- func ClickOnAnchorAndOpenNewTab(ctx context.Context, node *cdp.Node) (newTabCtx context.Context, cancelFunc func(), err error)
- func ConcatenateErrors(errors ...error) error
- func Get1stGroupMatch(str string, re *regexp.Regexp) string
- func Get2ndGroupMatch(str string, re *regexp.Regexp) string
- func Get3rdGroupMatch(str string, re *regexp.Regexp) string
- func GetAllAnchorNodes(ctx context.Context) (nodes []*cdp.Node, err error)
- func GetAllButtonNodes(ctx context.Context) (nodes []*cdp.Node, err error)
- func GetAllDivNodes(ctx context.Context) (nodes []*cdp.Node, err error)
- func GetAllImgNodes(ctx context.Context) (nodes []*cdp.Node, err error)
- func GetAllInputNodes(ctx context.Context) (nodes []*cdp.Node, err error)
- func GetAllSvgNodes(ctx context.Context) (nodes []*cdp.Node, err error)
- func GetFirstDescendantOfSlibingNodes(node *cdp.Node, descendantNodeLocalName string) *cdp.Node
- func GetHref(node *cdp.Node) string
- func GetNodeWithText(ctx context.Context, textToMatch string, nodes []*cdp.Node) (nodeWithText *cdp.Node, err error)
- func GetNodesAttrsMap(nodes []*cdp.Node) map[*cdp.Node]map[string]string
- func LogPageLoaded(ctx context.Context)
- func PrintNodesAltAndSrc(nodes []*cdp.Node)
- func RequestSubtree(ctx context.Context, node *cdp.Node) (err error)
- func SaveScreenshotsOfThumbnailNodes(ctx context.Context, imgNodes []*cdp.Node) (err error)
- func ScrollToButtomOfPage(ctx context.Context) (err error)
- func StartSavingResponseToFile(ctx context.Context, requestID network.RequestID, filepath string) (err error)
- func TargetNode(node *cdp.Node) chromedp.QueryOption
- type Errors
- type UrlMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConcatenateErrors ¶
func GetNodeWithText ¶
func LogPageLoaded ¶
func PrintNodesAltAndSrc ¶
func ScrollToButtomOfPage ¶
func TargetNode ¶
func TargetNode(node *cdp.Node) chromedp.QueryOption
TargetNode is used to target a specific node which chromedp does QueryAction on. it helps the convoluting usage of "chromedp.FromNode(node.Parent)"
Types ¶
type UrlMap ¶
type UrlMap map[string]struct{}