From c687f40c206e1d1f874e91dd396c8d68c64c83f2 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Wed, 11 Nov 2020 01:11:01 +0300 Subject: refactor: move click handlers to utils --- src/attendConference.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/attendConference.js') diff --git a/src/attendConference.js b/src/attendConference.js index b7f744f..80dc1c5 100644 --- a/src/attendConference.js +++ b/src/attendConference.js @@ -1,6 +1,5 @@ -const clickElementByXPath = (page, xPath) => page - .waitForXPath(xPath) - .then(item => item.click()); +const { clickElementByXPath } = require('./utils.js'); + const attendConference = async page => { // Join as "Listen only" -- cgit v1.2.3