summaryrefslogtreecommitdiff
path: root/src/attendConference.js
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-11-11 01:11:01 +0300
committereug-vs <eug-vs@keemail.me>2020-11-11 01:11:01 +0300
commitc687f40c206e1d1f874e91dd396c8d68c64c83f2 (patch)
tree4776bd99d32b79591b21f19b637e4a3927d0d214 /src/attendConference.js
parenta52bf99bbf2d394685f92aa13b5bff438ff8ef0a (diff)
downloadbsu-fantom-c687f40c206e1d1f874e91dd396c8d68c64c83f2.tar.gz
refactor: move click handlers to utils
Diffstat (limited to 'src/attendConference.js')
-rw-r--r--src/attendConference.js5
1 files changed, 2 insertions, 3 deletions
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"