Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

How to add text to an alert box

I am using Selenium Standalone and I am automating in JavaScript with Nightwatch.js and I'm using POM. I am trying to use .setAlertText but it's not working. Any ideas or suggestions?

            .waitForElementVisible('@canvassArea', 5000)
            .click('@canvassArea')
            .waitForElementVisible('@areas', 5000)
            .click('@provo')
            .waitForElementVisible('@newAreaZip', 5000)
            .click('@newAreaZip')
            .api.keys(["8", "4", "1", "0", "4"])

No errors, just not populating in the alert box.

Comments