Skip to content

Instantly share code, notes, and snippets.

@jan-molak
Created March 19, 2021 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jan-molak/f7fda346618bb7d1ffba9bce987cc3e4 to your computer and use it in GitHub Desktop.
Save jan-molak/f7fda346618bb7d1ffba9bce987cc3e4 to your computer and use it in GitHub Desktop.
import { Target } from '@serenity-js/protractor';
import { by } from 'protractor';
class Quiz {
static questions = () =>
Target.all('questions').located(by.css('.quiz-question'))
}
class QuizQuestion {
static title = () =>
Target.the('title').located(by.css('h3'))
static answers = () =>
Target.all('questions').located(by.css('.answers li'))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment