Add protractor button text locators.

This commit is contained in:
pspi
2014-05-23 12:34:07 +03:00
parent 568cb00761
commit 9515c65ee3
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;