Created
March 19, 2021 10:37
-
-
Save jan-molak/f7fda346618bb7d1ffba9bce987cc3e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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