Expose Response Headers
Expose the page response headers to Navigator object to make them available from Selenium and other web drivers
Expose Response Headers क्या है?
Expose Response Headers Alexander Kuzmenok द्वारा विकसित एक क्रोम एक्सटेंशन है, और इसकी मुख्य विशेषता है "Expose the page response headers to Navigator object to make them available from Selenium and other web drivers"।
एक्सएक्स एक्सटेंशन CRX फ़ाइल डाउनलोड करें
crx प्रारूप में Expose Response Headers एक्सटेंशन फ़ाइलें डाउनलोड करें, ब्राउज़र में क्रोम एक्सटेंशन को मैन्युअल रूप से स्थापित करें या दोस्तों के साथ crx फ़ाइलों को साझा करें ताकि क्रोम एक्सटेंशन को आसानी से स्थापित किया जा सके।
एक्सटेंशन उपयोग निर्देश
This is a technical extension to be used with web drivers like Selenium. It adds the so-needed functionality like providing response headers and response status code for requested urls. The available items go to Navigator object, under following properties: navigator.requestHeaders =; navigator.requestUrl = ; navigator.requestMethod = ; navigator.responseHeaders = ; navigator.responseStatusCode = ; navigator.responseStatusLine = ; navigator.responseUrl = ; navigator.responseMethod = ; To get those values, you typically need to get them by running a javascript in a page context, and returning the result. In Selenium, it would look something like this: var builder = new selenium.Builder().withCapabilities(selenium.Capabilities.chrome()); var options = new selenium_chrome.Options(); options.addExtensions(__dirname + "/response-headers.crx"); builder.setChromeOptions(options); var page = builder.build(); page.then(function() { // load your url here }, function(err) { // error creating browser }); /// then somewhere after loading the url, you would do page.executeScript(function() { return { statusCode: navigator.responseStatusCode } }).then(function(obj) { // now you have obj.statusCode }); Gist example: https://gist.github.com/javascriptlove/4a00c4931c4c83287f4efd6c23fd02ed
एक्सटेंशन की मूल जानकारी
नाम | |
ID | omlflgllokdkamhdgiaalffaeopelagg |
आधिकारिक URL | https://chromewebstore.google.com/detail/expose-response-headers/omlflgllokdkamhdgiaalffaeopelagg |
विवरण | Expose the page response headers to Navigator object to make them available from Selenium and other web drivers |
फ़ाइल का आकार | 20.04 KB |
स्थापना संख्या | 17 |
वर्तमान संस्करण | 1.0.1 |
अंतिम अपडेट | 2017-03-02 |
प्रकाशन तिथि | 2017-03-02 |
डेवलपर | Alexander Kuzmenok |
ईमेल | [email protected] |
भुगतान के प्रकार | free |
समर्थित भाषाएँ | en |
manifest.json | |
{ "background": { "scripts": [ "background.js" ] }, "content_scripts": [ { "matches": [ "http:\/\/*\/*", "https:\/\/*\/*" ], "js": [ "content_script.js" ], "run_at": "document_start" } ], "description": "Expose the page response headers to Navigator object to make them available from Selenium and other web drivers", "icons": { "128": "icon128.png" }, "manifest_version": 2, "name": "Expose Response Headers", "permissions": [ "webRequest", "tabs", "http:\/\/*\/*", "https:\/\/*\/*" ], "update_url": "http:\/\/clients2.google.com\/service\/update2\/crx", "version": "1.0.1" } |