Package Torello.Browser
Allows a user to start up a headless browser, and use the API that it exports to manipulate the
browser. Commands may be sent to the browser using any one of the Primary Domain classes
provided in this package. The methods in each of these Primary Domains return results, and can
also generate events that the user may receive. Each domain has a long list of events and types
that may be used with these methods.
This API is entirely auto-generated Java Code that has been produced from the Headless Google Chrome API that Chrome provides. This API may be used Chrome, or with Interne Explorer which now also uses the same Chrome Engine in its browser core.
This package can also be used to drive / control a non-headless browser that is sitting, open, on your desktop.
This API is entirely auto-generated Java Code that has been produced from the Headless Google Chrome API that Chrome provides. This API may be used Chrome, or with Interne Explorer which now also uses the same Chrome Engine in its browser core.
This package can also be used to drive / control a non-headless browser that is sitting, open, on your desktop.
-
Simple Examples Java Entity Description Example01 An example of this package's utilityExample02 This example code saves a picture of the Sam Altman Web Page to diskExample03 Demonstrates several CDP browser features without using JavaScript evaluationPrinting Simple printer for the example classes in this packageBrowser Web-Sockets Java Entity Description BrowserConn A Connection to a Browser, rather than an individual Page within the BrowserPageConn A class which represents a connection to a particular Page or Tab that has been opened within the Browser, rather than a connection to the Browser itselfConnRecord Central record, log collector, and user-callback router for a CDP browser sessionPromise<RESULT> Primarily a wrapper around Java'sCompletableFuturethat provides two or three simplified methods for awaiting a promiseScript<RESULT> The class script simply sends an asynchronous request, and returns an instance ofPromisewhich may be awaitedWebSocketSender This class implements a connection to a Web-Browser using the Remote Debug Protocol over Web-SocketsClasses Java Entity Description BaseType<DOMAIN_NESTED extends BaseType<DOMAIN_NESTED>> This class is declared'abstract'and serves as the root ancestor clas for all data record types & events in all domains in within the Chrome DevTools Protocol (CDP) APIBrowserEvent<DOMAIN_NESTED extends BrowserEvent<DOMAIN_NESTED>> All events fired by the headless-browser extend this abstract classMarkerEvent Marker Events are events which the browser fires, and transmits over the Web-Socket Wall, that do not possess any data or state whatsoeverBrowserError Represents an Error Sent by the Chrome Browser over WebSocketRDPError Represents an Internal Java-Side Failure During WebSocket CommunicationReadAPI Advanced Builder Classes Java Entity Description AbstractDescriptor Serves as the parent class for bothNestedDescriptorandCommandDescriptorCommandDescriptor<T> Reflected information / data which has been extracted from one of the generated CDP domain command methodsNestedDescriptor<DOMAIN_NESTED extends BaseType<DOMAIN_NESTED>> Reflected information / data which has been extracted from one of the nested CDP types declared inside a generated domain classAbstractBuilder<T> An abstract base class for builder-style objects that collect named assignments before producing a final CDP-related objectCommandBuilder<T> A 'Builder' software design pattern that may be used to constructScriptinstances for CDP browser commands whose method signatures contain long lists of input parametersTypeBuilder<CDP_TYPE extends BaseType<CDP_TYPE>> A 'Builder' software design pattern that may be used to construct instances of any of the nested domain types & classes in CDPInternal Use & Reference Java Entity Description CDPToString Converts Chrome DevTools Protocol data objects and builders into readable diagnostic textCDPTypes 💡 Primarily, this class is used by the Code Generator to produce the classes that comprise the Java Browser-Automation LibraryHandleDispatch Top level dispatch handler for all messages received from the browser, via websocketNestedHelper<DOMAIN_NESTED extends BaseType<DOMAIN_NESTED>> Defines the singleton helper contract that supplies metadata, validation, and JSON conversion logic for a nested CDP type, event, or command-return classNumberCrap Yes, this is a great name for a classWriteJSON Generates JSON Requests from lists of Parameter-Names, Parameter-Types and Parameter-ValuesEnums Java Entity Description Domains A simple way of representing the various Browser Domains offered by the Remote BrowserExceptions Java Entity Description AsynchronousException A general purpose exception used to indicate there have been problems with an asynchronous communications system or channelBrowserErrorException BrowserException RDPException Internally used exception for any unexpected problems with the Web-Sockets ProtocolUnknownPropertyException If an attempt is made to look up the array index of a type or event class field which is does not exist in the nested type, then this exception shall throwUncheckedExecutionException Convert Java'sExecutionExceptioninto an uncheckedRuntimeExceptionUncheckedTimeoutException Convert Java'sTimeoutExceptioninto an uncheckedRuntimeExceptionUncheckedInterruptedException Convert Java'sInterruptedExceptioninto an uncheckedRuntimeExceptionDataIntegrityException Abstract ancestor exception class for exceptions which check the integrity of instances of both CDP types and CDP eventsInvalidEnumStrException Used to indicate that a field within a CDP type or event has been constructed is a string field, and has a pre-defined & pre-specified enumeration of valid strings, but whose value does not actually equal one of the listed, pre-defined stringsNullNonOptionalException This exception is thrown by theBaseTypeTypeAssignmentException Thrown byAbstractBuilderwhen a programmer attempts to assign a value using a Java type that is incompatible with the builder property's expected typeAssignmentNameException This exception throws if, when building a CDP instance with the 'advanced'TypeBuilderclass, but a unknown field name has been passed by the userErrors Java Entity Description InvalidNumberTypeError Error used to indicate that an internal problem involving JSON number conversion from Java into JSON has occuredUnknownWebSocketsError An issue with the Web-Sockets Transport Layer has occuredUnrecognizedCTABError Indicates that a class has received a Java'byte'which isn't among the recognized "Computed Type as Byte" constant values, as listed within static-constant classCDPTypesUnrecognizedCTASError Indicates that the classCDPTypeshas received a JavaStringwhich isn't among the recognized "Computed Type as String" types