Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit c0b8770

Browse files
wswebcreationheathkit
authored andcommitted
docs(website): fix issue 4246
This PR fixes the incorrect example in http://www.protractortest.org/#/api?view=webdriver.WebElement.prototype.getCssValue
1 parent f79938e commit c0b8770

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/selenium-webdriver/webdriver.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,7 @@ webdriver.WebElement.prototype.getTagName = function() {};
533533
* <span style='color: #000000'>{{person.name}}</span>
534534
*
535535
* @example
536-
* expect(element(by.binding('person.name')).getCssValue().indexOf(
537-
* 'color: #000000')).not.toBe(-1);
536+
* expect(element(by.binding('person.name')).getCssValue('color')).toBe('#000000');
538537
*
539538
* @param {string} cssStyleProperty The name of the CSS style property to look
540539
* up.

0 commit comments

Comments
 (0)