D
D
Danil2016-08-29 12:14:03
Node.js
Danil, 2016-08-29 12:14:03

How to use Selenium Protocol from nodejs?

I'm using nightwatch.js and I'm trying to send a request via request.post to selenium ( selenium protocol ), but I get an error:

[Error: Invalid URI "/session/9bb486d4-5e30-40bb-a236-b6921dd0f583/accept_alert"]

The request itself looks like this:
request.post('/session/'+session+'/accept_alert', function (error, response, body) {
    console.log(error)
})

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danil, 2016-08-30
@Veneomin

It can be easier.
How to close alert in nightwatchjs?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question