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

Commit f36e981

Browse files
TheCuriousNoobheathkit
authored andcommitted
docs(webdriver): Add missing quotes in getAttribute doc. (#3620)
In getAttibute function documentation : `expect(foo.getAttribute(class))...` was written. This got me confused when getting a class attribute. I just added quotes around the class word showing class as a string and not a variable. Close #3619
1 parent f9c8a37 commit f36e981

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/selenium-webdriver/webdriver.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ webdriver.WebDriver.prototype.takeScreenshot = function() {};
305305

306306
/**
307307
* Used to switch WebDriver's focus to a frame or window (e.g. an alert, an
308-
* iframe, another window).
308+
* iframe, another window).
309309
*
310310
* See [WebDriver's TargetLocator Docs](http://seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/lib/webdriver_exports_TargetLocator.html)
311311
* for more information.
@@ -553,7 +553,7 @@ webdriver.WebElement.prototype.getCssValue = function(cssStyleProperty) {};
553553
*
554554
* @example
555555
* var foo = element(by.id('foo'));
556-
* expect(foo.getAttribute(class)).toEqual('bar');
556+
* expect(foo.getAttribute('class')).toEqual('bar');
557557
*
558558
* @param {string} attributeName The name of the attribute to query.
559559
* @returns {!webdriver.promise.Promise.<?string>} A promise that will be

0 commit comments

Comments
 (0)