![]() This field should be omitted (it will be set to undef) for http auth type authentications and "" means to match against any form action. Forms with no action attribute default to submitting to the URL of the page containing the login form, so that is stored here. Origin - The scheme + hostname that the form-based login was submitted to. Host - The scheme + hostname of the page where the login applies, for example ''. This method returns itself to aid in chaining methods. My $firefox = Firefox::Marionette->new()->add_header( 'Accept' => 'text/perl' )->go('') īy itself, will send out an Accept header that may resemble Accept: text/html,application/xhtml+xml,application/xml q=0.9,image/webp,*/* q=0.8, text/perl. Will only send out an Accept header that looks like Accept: text/perl. My $firefox = Firefox::Marionette->new()->delete_header( 'Accept' )->add_header( 'Accept' => 'text/perl' )->go('') To clear headers, see the delete_header method use Firefox::Marionette() These headers are added to any existing headers. $firefox->add_header( 'Track-my-automated-tests' => $uuid ) My $firefox = Firefox::Marionette->new() add_headerĪccepts a hash of HTTP headers to include in every future HTTP Request. This method throws an exception if you try to add a cookie for a different domain than the current document. My $pem_encoded_string = new()->add_certificate(string => $pem_encoded_string) add_cookieĪccepts a single cookie object as the first parameter and adds it to the current cookie jar. ![]() Trust - This is the trustargs value for NSS. String - a string containing a single PEM encoded X.509 certificate Path - a file system path to a single PEM encoded X.509 certificate. add_certificateĪccepts a hash as a parameter and adds the specified certificate to the Firefox database with the supplied or default trust. ![]() My $bookmark = Firefox::Marionette::Bookmark->new( add_bookmarkĪccepts a bookmark as a parameter and adds the specified bookmark to the Firefox places database. Returns the active element of the current browsing context's document element, if the document element is non-null. Please note that when closing the connection via the client you can end-up in a non-recoverable state if it hasn't been enabled before. Use true to re-enable accepting connections. By calling this method with false the server will not accept any further connections, but existing connections will not be forcible closed. This is a client module to automate the Mozilla Firefox browser via the Marionette protocol SUBROUTINES/METHODS accept_alertĪccepts a currently displayed modal message box accept_connectionsĮnables or disables accepting new socket connections. $firefox->find_partial('Download')->click() DESCRIPTION $firefox->find_class('page-content')->css('height') $firefox->find_class('page-content')->find_id('metacpan_search-input')->type('Test::More') Say $firefox->find_tag('title')->property('innerHTML') # same as $firefox->title() My $firefox = Firefox::Marionette->new()->go('') Version 1.41 SYNOPSIS use Firefox::Marionette()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |