Skip to content

Attendance and Goodbye messages #27

@Nauj-Montes

Description

@Nauj-Montes

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!")

1

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();
}

2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions