Documentation ¶
Index ¶
- func FindTests(page *rod.Page) []string
- func FinishTest(page *rod.Page) (error, bool)
- func IsTestSuccessful(page *rod.Page) bool
- func Login(page *rod.Page, data config.Configuration) error
- func MakeTest(page *rod.Page, testNum int, s storage.Storage) error
- func MustFindTestNum(page *rod.Page) int
- func StartNextAttempt(page *rod.Page) error
- type QA
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindTests ¶
FindTests return list of links with title='Переглянути ваші відповіді в цій спробі'
func FinishTest ¶
finishTest finds and clicks all nesesary buttons to complete test.
func IsTestSuccessful ¶
isTestSuccessful checks rate of correct answers. It returns true if test successful (100% of correct answers)
func Login ¶
func Login(page *rod.Page, data config.Configuration) error
login to VNS by login and password from config.
func MustFindTestNum ¶
mustFindTestNum finds test number to store answers to reqared table in databse. It panics if can't find test number in page.
func StartNextAttempt ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.