_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c178700 | // MustStringFormatter is equivalent to NewStringFormatter with a call to panic
// on error. | |
c178701 | // formatFuncName tries to extract certain part of the runtime formatted
// function name to some pre-defined variation.
//
// This function is known to not work properly if the package path or name
// contains a dot. | |
c178702 | // Log implements the Log function required by the Backend interface. | |
c178703 | // LogLevel returns the log level from a string representation. | |
c178704 | // AddModuleLevel wraps a log backend with knobs to have different log levels
// for different modules. | |
c178705 | // MultiLogger creates a logger which contain multiple loggers. | |
c178706 | // Log passes the log record to all backends. | |
c178707 | // GetLevel returns the highest level enabled by all backends. | |
c178708 | // SetLevel propagates the same level to all backends. | |
c178709 | // IsEnabledFor returns true if any of the backends are enabled for it. | |
c178710 | // ConvertColors takes a list of ints representing colors for log levels and
// converts them into strings for ANSI color formatting | |
c178711 | // NewSyslogBackend connects to the syslog daemon using UNIX sockets with the
// given prefix. If prefix is not given, the prefix will be derived from the
// launched command. | |
c178712 | // NewSyslogBackendPriority is the same as NewSyslogBackend, but with custom
// syslog priority, like syslog.LOG_LOCAL3|syslog.LOG_DEBUG etc. | |
c178713 | // SetBackend replaces the backend currently set with the given new logging
// backend. | |
c178714 | // NewCommander returns a new commander with the specified top-level
// flags and command name. The Usage function for the topLevelFlags
// will be set as well. | |
c178715 | // Execute should be called once the top-level-flags on a Commander
// have been initialized. It finds the correct subcommand and executes
// it, and returns an ExitStatus with the result. On a usage error, an
// appropriate message is printed to os.Stderr, and ExitUsageError is
// returned. The additional args are pro... | |
c178716 | // explain prints a brief description of all the subcommands and the
// important top-level flags. | |
c178717 | // explainGroup explains all the subcommands for a particular group. | |
c178718 | // explainCmd prints a brief description of a single command. | |
c178719 | // dealias recursivly dealiases a command until a non-aliased command
// is reached. | |
c178720 | // Execute should be called once the default flags have been
// initialized by flag.Parse. It finds the correct subcommand and
// executes it, and returns an ExitStatus with the result. On a usage
// error, an appropriate message is printed to os.Stderr, and
// ExitUsageError is returned. The additional args are provid... | |
c178721 | // LoadFromData accepts raw data directly from memory
// and returns a new configuration representation.
// Note that the configuration is written to the system
// temporary folder, so your file should not contain
// sensitive information. | |
c178722 | // LoadFromReader accepts raw data directly from a reader
// and returns a new configuration representation.
// You must use ReloadData to reload.
// You cannot append files a configfile read this way. | |
c178723 | // ReloadData reloads configuration file from memory | |
c178724 | // SaveConfigData writes configuration to a writer | |
c178725 | // Find finds exactly one element by CSS selector. | |
c178726 | // FindByXPath finds exactly one element by XPath selector. | |
c178727 | // FindByLink finds exactly one anchor element by its text content. | |
c178728 | // FindByLabel finds exactly one element by associated label text. | |
c178729 | // FindByName finds exactly element with the provided name attribute. | |
c178730 | // FindByClass finds exactly one element with a given CSS class. | |
c178731 | // FindByID finds exactly one element that has the given ID. | |
c178732 | // First finds the first element by CSS selector. | |
c178733 | // FirstByXPath finds the first element by XPath selector. | |
c178734 | // FirstByLink finds the first anchor element by its text content. | |
c178735 | // FirstByLabel finds the first element by associated label text. | |
c178736 | // FirstByName finds the first element with the provided name attribute. | |
c178737 | // All finds zero or more elements by CSS selector. | |
c178738 | // AllByXPath finds zero or more elements by XPath selector. | |
c178739 | // AllByLink finds zero or more anchor elements by their text content. | |
c178740 | // AllByLabel finds zero or more elements by associated label text. | |
c178741 | // AllByName finds zero or more elements with the provided name attribute. | |
c178742 | // AllByClass finds zero or more elements with a given CSS class. | |
c178743 | // AllByID finds zero or more elements with a given ID. | |
c178744 | // FirstByClass finds the first element with a given CSS class. | |
c178745 | // Timeout provides an Option for specifying a timeout in seconds. | |
c178746 | // ChromeOptions is used to pass additional options to Chrome via ChromeDriver. | |
c178747 | // JoinPage creates a Page using existing session URL. This method takes Options
// but respects only the HTTPClient Option if provided. | |
c178748 | // Destroy closes any open browsers by ending the session. | |
c178749 | // Reset deletes all cookies set for the current domain and navigates to a blank page.
// Unlike Destroy, Reset will permit the page to be re-used after it is called.
// Reset is faster than Destroy, but any cookies from domains outside the current
// domain will remain after a page is reset. | |
c178750 | // Navigate navigates to the provided URL. | |
c178751 | // GetCookies returns all cookies on the page. | |
c178752 | // SetCookie sets a cookie on the page. | |
c178753 | // DeleteCookie deletes a cookie on the page by name. | |
c178754 | // ClearCookies deletes all cookies on the page. | |
c178755 | // URL returns the current page URL. | |
c178756 | // Size sets the current page size in pixels. | |
c178757 | // Screenshot takes a screenshot and saves it to the provided filename.
// The provided filename may be an absolute or relative path. | |
c178758 | // Title returns the page title. | |
c178759 | // HTML returns the current contents of the DOM for the entire page. | |
c178760 | // PopupText returns the current alert, confirm, or prompt popup text. | |
c178761 | // EnterPopupText enters text into an open prompt popup. | |
c178762 | // ConfirmPopup confirms an alert, confirm, or prompt popup. | |
c178763 | // CancelPopup cancels an alert, confirm, or prompt popup. | |
c178764 | // SwitchToParentFrame focuses on the immediate parent frame of a frame selected
// by Selection.Frame. After switching, all new and existing selections will refer
// to the parent frame. All further Page methods will apply to this frame as well.
//
// This method is not supported by PhantomJS. Please use SwitchToRootF... | |
c178765 | // SwitchToRootFrame focuses on the original, default page frame before any calls
// to Selection.Frame were made. After switching, all new and existing selections
// will refer to the root frame. All further Page methods will apply to this frame
// as well. | |
c178766 | // NextWindow switches to the next available window. | |
c178767 | // CloseWindow closes the active window. | |
c178768 | // WindowCount returns the number of available windows. | |
c178769 | // LogTypes returns all of the valid log types that may be used with a LogReader. | |
c178770 | // MoveMouseBy moves the mouse by the provided offset. | |
c178771 | // DoubleClick double clicks the left mouse button at the current mouse
// position. | |
c178772 | // Click performs the provided Click event using the provided Button at the
// current mouse position. | |
c178773 | // Click clicks on all of the elements that the selection refers to. | |
c178774 | // DoubleClick double-clicks on all of the elements that the selection refers to. | |
c178775 | // Fill fills all of the fields the selection refers to with the provided text. | |
c178776 | // Tap performs the provided Tap event on each element in the selection. | |
c178777 | // Touch performs the provided Touch event at the location of each element in the
// selection. | |
c178778 | // FlickFinger performs a flick touch action by the provided offset and at the
// provided speed on exactly one element. | |
c178779 | // ScrollFinger performs a scroll touch action by the provided offset on exactly
// one element. | |
c178780 | // NewCapabilities returns a Capabilities instance with any provided features enabled. | |
c178781 | // JSON returns a JSON string representing the desired capabilities. | |
c178782 | // HaveTitle passes when the expected title is equivalent to the
// title of the provided page. | |
c178783 | // HaveURL passes when the expected URL is equivalent to the
// current URL of the provided page. | |
c178784 | // HavePopupText passes when the expected text is equivalent to the
// text contents of an open alert, confirm, or prompt popup. | |
c178785 | // HaveLoggedError passes when all of the expected log messages are logged as
// errors in the browser console. If no message is provided, this matcher will
// pass if any error message has been logged. When negated, this matcher will
// only fail if all of the provided messages are logged. | |
c178786 | // Text returns the entirety of the text content for exactly one element. | |
c178787 | // Active returns true if the single element that the selection refers to is active. | |
c178788 | // Attribute returns an attribute value for exactly one element. | |
c178789 | // CSS returns a CSS style property value for exactly one element. | |
c178790 | // Selected returns true if all of the elements that the selection refers to are selected. | |
c178791 | // Visible returns true if all of the elements that the selection refers to are visible. | |
c178792 | // Enabled returns true if all of the elements that the selection refers to are enabled. | |
c178793 | // HaveCount passes when the expected element count is equal to the actual
// number of elements in the selection. | |
c178794 | // HaveAttribute passes when the expected attribute and value are present on the element.
// This matcher will fail if the provided selection refers to more than one element. | |
c178795 | // EdgeDriver returns an instance of a EdgeDriver WebDriver.
//
// Provided Options will apply as default arguments for new pages.
// New pages will accept invalid SSL certificates by default. This
// may be disabled using the RejectInvalidSSL Option. | |
c178796 | // Selendroid returns an instance of a Selendroid WebDriver.
//
// Provided Options will apply as default arguments for new pages.
// New pages will accept invalid SSL certificates by default. This
// may be disabled using the RejectInvalidSSL Option.
//
// The jarFile is a relative or absolute path to Selendroid JAR f... | |
c178797 | // SwitchToFrame focuses on the frame specified by the selection. All new and
// existing selections will refer to the new frame. All further Page methods
// will apply to this frame as well. | |
c178798 | // Count returns the number of elements that the selection refers to. | |
c178799 | // EqualsElement returns whether or not two selections of exactly
// one element refer to the same element. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.