-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
Adding attendance and goodbye messages for this code, is a proper manner to at least say Hi👋🏽 and goodbye👋🏽 in the chat while you're not even getting into classes 🤣🤷🏽♂️.
Just after the chromium gets into the call...
console.log("Successfully joined/Sent join request")
await this.page.waitForTimeout(4000)
console.log("\nWriting attendance message....")
await this.page.click("span.DPvwYc.sm8sCf.KdraA")
//Attendance message
await this.page.waitForTimeout(4000)
await this.page.focus("textarea.KHxj8b.tL9Q4c")
console.log("\nWriting message...")
await this.page.keyboard.type("your attendance message", {
delay: 0
})
await this.page.waitForTimeout(500)
await this.page.click("span.DPvwYc.e3AdI")
console.log("\nMessage sent!")
And in the same block as the call ends....
async end() {
//Goodbye message
await this.page.focus("textarea.KHxj8b.tL9Q4c")
console.log("\nSaying Goodbye...")
await this.page.keyboard.type("your goodbye message", {
delay: 0
})
await this.page.waitForTimeout(500)
await this.page.click("span.DPvwYc.e3AdI")
console.log("\nAll done!")
await this.page.waitForTimeout(2000)
await this.browser.close();
}
Metadata
Metadata
Assignees
Labels
No labels

