Merge pull request #2237 from pspi/protractor-buttontext

Add protractor button text locators.
This commit is contained in:
Masahiro Wakame
2014-05-26 11:14:00 +09:00
2 changed files with 6 additions and 0 deletions
@@ -223,6 +223,8 @@ function TestLocatorStrategies() {
webElement = ptor.findElement(protractor.By.model('model'));
webElement = ptor.findElement(protractor.By.textarea('textarea'));
webElement = ptor.findElement(protractor.By.repeater('repeater'));
webElement = ptor.findElement(protractor.By.buttonText('buttonText'));
webElement = ptor.findElement(protractor.By.partialButtonText('partialButtonText'));
}
// This function tests the methods that were added to the base WebElement class
+4
View File
@@ -646,6 +646,10 @@ declare module protractor {
* var rows = element(by.repeater("cat in pets"));
*/
repeater(repeatDescriptor: string): webdriver.Locator;
buttonText(searchText: string): webdriver.Locator;
partialButtonText(searchText: string): webdriver.Locator;
}
var By: IProtractorLocatorStrategy;