diff options
author | eug-vs <eug-vs@keemail.me> | 2020-11-11 01:11:01 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-11-11 01:11:01 +0300 |
commit | c687f40c206e1d1f874e91dd396c8d68c64c83f2 (patch) | |
tree | 4776bd99d32b79591b21f19b637e4a3927d0d214 /src/attendConference.js | |
parent | a52bf99bbf2d394685f92aa13b5bff438ff8ef0a (diff) | |
download | bsu-fantom-c687f40c206e1d1f874e91dd396c8d68c64c83f2.tar.gz |
refactor: move click handlers to utils
Diffstat (limited to 'src/attendConference.js')
-rw-r--r-- | src/attendConference.js | 5 |
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" |