protractor#element TypeScript Examples

The following examples show how to use protractor#element. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: about.po.ts    From enterprise-ng-2020-workshop with MIT License 5 votes vote down vote up
getGettingStarted() {
    return element(by.css('.get-started'));
  }
Example #2
Source File: app.po.ts    From one-platform with MIT License 5 votes vote down vote up
async getTitleText(): Promise<string> {
    return element(by.css('app-root .content span')).getText();
  }
Example #3
Source File: app.po.ts    From avid-covider with MIT License 5 votes vote down vote up
// == options ==
  private getActiveHtlSingleOptions(useIndex?: number): ElementArrayFinder {
    const index = this.answersCounter.optionsSingle;
    return element.all(by.css('htl-messages htl-message-options'))
      .get(index)
      .all(by.css('.options button'));
  }
Example #4
Source File: app.po.ts    From IntelOwl-ng with GNU Affero General Public License v3.0 5 votes vote down vote up
getTitleText(): Promise<string> {
    return element(by.css('ngx-app .content span')).getText() as Promise<
      string
    >;
  }
Example #5
Source File: app.po.ts    From actions-test with Apache License 2.0 5 votes vote down vote up
getElement(selector) {
    return element(by.css(selector));
  }
Example #6
Source File: app.po.ts    From litefy with MIT License 5 votes vote down vote up
getTitleText() {
    return element(by.css('app-root h1')).getText();
  }
Example #7
Source File: app.po.ts    From dayz-server-manager with MIT License 5 votes vote down vote up
getTitleText() {
        return element(by.css('app-root sb-dashboard-head h1')).getText() as Promise<string>;
    }
Example #8
Source File: app.po.ts    From capture-lite with GNU General Public License v3.0 5 votes vote down vote up
async getParagraphText() {
    return element(by.deepCss('app-root ion-content')).getText();
  }
Example #9
Source File: app.po.ts    From enterprise-ng-2020-workshop with MIT License 5 votes vote down vote up
getCurrentYear() {
    return element(by.css('.signature .year')).getText();
  }
Example #10
Source File: app.po.ts    From avid-covider with MIT License 5 votes vote down vote up
getHtlInputConfrim() {
    return element(by.css('htl-input button'));
  }
Example #11
Source File: about.po.ts    From enterprise-ng-2020-workshop with MIT License 5 votes vote down vote up
getActionButton(idx) {
    return element.all(by.css('.actions a')).get(idx);
  }
Example #12
Source File: app.po.ts    From radiopanel with GNU General Public License v3.0 5 votes vote down vote up
getTitleText() {
	return element(by.css('app-root h1')).getText() as Promise<string>;
  }
Example #13
Source File: app.po.ts    From nestjs-angular-starter with MIT License 5 votes vote down vote up
getParagraphText(): Promise<string> {
    return element(by.css('app-root h1')).getText() as Promise<string>;
  }
Example #14
Source File: app.po.ts    From spurtcommerce with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
getParagraphText() {
    return element(by.css('app-root h1')).getText();
  }
Example #15
Source File: app.po.ts    From ngx-mat-timepicker with MIT License 5 votes vote down vote up
getParagraphText() {
    return element(by.css('d-root h1')).getText();
  }
Example #16
Source File: app.po.ts    From tzcolors with MIT License 5 votes vote down vote up
async getTitleText(): Promise<string> {
    return element(by.css('app-root .content span')).getText()
  }
Example #17
Source File: app.po.ts    From matx-angular with MIT License 5 votes vote down vote up
getParagraphText() {
    return element(by.css('app-root h1')).getText();
  }
Example #18
Source File: app.po.ts    From ngx-videogular with MIT License 5 votes vote down vote up
getTitleText(): Promise<string> {
    return element(
      by.css('ngx-videogular-root header h1')
    ).getText() as Promise<string>;
  }
Example #19
Source File: app.po.ts    From slate-angular with MIT License 5 votes vote down vote up
getTitleText(): Promise<string> {
    return element(by.css('demo-app-root .content span')).getText() as Promise<string>;
  }
Example #20
Source File: app.po.ts    From yii-debug-frontend with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
getParagraphText() {
        return element(by.css('app-root h1')).getText();
    }
Example #21
Source File: app.po.ts    From distributed-compliance-ledger with Apache License 2.0 5 votes vote down vote up
getTitleText() {
    return element(by.css('app-root .content span')).getText() as Promise<string>;
  }
Example #22
Source File: app.po.ts    From barista with Apache License 2.0 5 votes vote down vote up
getTitleText() {
    return element(by.css('app-root h1')).getText() as Promise<string>;
  }
Example #23
Source File: app.po.ts    From one-platform with MIT License 5 votes vote down vote up
getTitleText(): Promise<string> {
    return element(by.css('app-root .content span')).getText() as Promise<string>;
  }
Example #24
Source File: app.po.ts    From 1x.ag with MIT License 5 votes vote down vote up
getTitleText() {
    return element(by.css('app-root .content span')).getText() as Promise<string>;
  }
Example #25
Source File: app.po.ts    From Uber-ServeMe-System with MIT License 5 votes vote down vote up
getPageTitle() {
    return element(by.css('ion-title')).getText();
  }
Example #26
Source File: app.po.ts    From bdc-walkthrough with MIT License 5 votes vote down vote up
getTitleText() {
    return element(by.css('bdc-root .content span')).getText() as Promise<string>;
  }
Example #27
Source File: app.po.ts    From rubic-app with GNU General Public License v3.0 5 votes vote down vote up
getTitleText() {
    return element(by.css('app-root h1')).getText() as Promise<string>;
  }
Example #28
Source File: app.po.ts    From Angular-HigherOrderMapping with MIT License 5 votes vote down vote up
getTitleText() {
    return element(by.css('pm-root h1')).getText() as Promise<string>;
  }
Example #29
Source File: app.po.ts    From Flutterwave-Angular-v3 with MIT License 5 votes vote down vote up
getParagraphText() {
    return element(by.css('app-root h1')).getText();
  }