xpath

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// XPathSelectors is a map regrouping all xpaths used by igopher
	// to find elements on the web page.
	// Also contains some elements names.
	XPathSelectors = map[string]string{

		"login_username":                 "username",
		"login_password":                 "password",
		"login_button":                   "//button[text()='Log In']",
		"login_alternate_button":         "//button/*[text()='Log In']",
		"login_accept_cookies":           "//button[text()='Accept All' or text()='Allow essential and optional cookies']",
		"login_alternate_accept_cookies": "//button[text()='Allow All Cookies']",
		"login_information_saving":       "//*[@aria-label='Home'] | //button[text()='Save Info'] | //button[text()='Not Now']",

		"dm_user_search": "//section/div[2]/div/div[1]/div/div[2]/input",
		"dm_placeholder": "//textarea[@placeholder]",
		"dm_send_button": "//button[text()='Send']",

		"dm_profile_pictures_links": "//div[@aria-labelledby]/div/span//img[@alt]",
		"dm_next_button":            "//button/*[text()='Next']",

		"profile_followers_button": "//section/main/div/ul/li[2]/a",
		"profile_followers_list":   "//*/li/div/div/div/div/a",
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL