describe('The feature', function() {
beforeEach(function() {
browser.executeScript('localStorage.setItem("key","value");');
});
it('should do this', function() {
});
});
में localStorage से एक आइटम सेट करें, लेकिन जब परीक्षण जहां से समस्या कैम किसी भी विचार chromedriver 2.10 और क्रोम 37एक चांदा परीक्षण
Executing: [execute script: window.localStorage.setItem("key","value");, []])
15:31:29.747 WARN - Exception thrown
org.openqa.selenium.WebDriverException: <unknown>: Failed to read the 'localStorage'
property from 'Window': Storage is disabled inside 'data:' URLs.
(Session info: chrome=37.0.2062.120)
(Driver info: chromedriver=2.10.267518,platform=Linux 3.11.0-26-generic x86_64) (WARNING:
The server did not provide any stacktrace information)
साथ सेलेनियम के खिलाफ चलाया जाता है मैं इस त्रुटि मिलती है?
क्या 'window.localStorage' आपके लिए काम करता है? – alecxe
नहीं। मैंने पहले ही कोशिश की है। – chopinHood