Last active
April 21, 2016 07:25
-
-
Save eyalzek/3eaee668a718287ee3c54003c9947442 to your computer and use it in GitHub Desktop.
getCssProperty character case issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
<div class="test" style="background-image: url(http://NoNeXiStEnT)"></div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[09:22:37] COMMAND POST "/wd/hub/session" | |
[09:22:37] DATA {"desiredCapabilities":{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"browserName":"chrome","loggingPrefs":{"browser":"ALL","driver":"ALL"},"requestOrigins":{"url":"http://webdriver.io","version":"4.0.5","name":"webdriverio"}}} | |
[09:22:37] INFO SET SESSION ID 962a15fe-7522-4d72-90fc-c4dc124ce36d | |
[09:22:37] RESULT {"platform":"LINUX","acceptSslCerts":true,"javascriptEnabled":true,"browserName":"chrome","chrome":{"userDataDir":"/tmp/.com.google.Chrome.pvjdNA"},"rotatable":false,"locationContextEnabled":true,"mobileEmulationEnabled":false,"webdriver.remote.sessionid":"962a15fe-7522-4d72-90fc-c4dc124ce36d","version":"50.0.2661.75","takesHeapSnapshot":true,"cssSelectorsEnabled":true,"databaseEnabled":false,"handlesAlerts":true,"browserConnectionEnabled":false,"nativeEvents":true,"webStorageEnabled":true,"hasTouchScreen":false,"applicationCacheEnabled":false,"takesScreenshot":true} | |
[09:22:38] COMMAND POST "/wd/hub/session/962a15fe-7522-4d72-90fc-c4dc124ce36d/url" | |
[09:22:38] DATA {"url":"http://localhost:8000"} | |
[09:22:38] RESULT null | |
[09:22:38] COMMAND POST "/wd/hub/session/962a15fe-7522-4d72-90fc-c4dc124ce36d/elements" | |
[09:22:38] DATA {"using":"css selector","value":".test"} | |
[09:22:38] RESULT [{"ELEMENT":"0"}] | |
[09:22:38] COMMAND GET "/wd/hub/session/962a15fe-7522-4d72-90fc-c4dc124ce36d/element/0/css/background-image" | |
[09:22:38] DATA {} | |
[09:22:38] RESULT "url(\"http://nonexistent/\")" | |
url("http://nonexistent/") | |
[09:22:38] COMMAND DELETE "/wd/hub/session/962a15fe-7522-4d72-90fc-c4dc124ce36d" | |
[09:22:38] DATA {} | |
[09:22:38] RESULT null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('case test', function() { | |
it('should return the letter in their proper case', function() { | |
return browser | |
.url('http://localhost:8000') | |
.getCssProperty('.test', 'background-image') | |
.then(function(prop) { | |
console.log(prop.value); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment