{"action":"closed","issue":{"url":"https://api.github.com/repos/beatfactor/nightwatch/issues/240","labels_url":"https://api.github.com/repos/beatfactor/nightwatch/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/beatfactor/nightwatch/issues/240/comments","events_url":"https://api.github.com/repos/beatfactor/nightwatch/issues/240/events","html_url":"https://github.com/beatfactor/nightwatch/issues/240","id":40666901,"number":240,"title":"using Selenium API in nightwatch custom commands","user":{"login":"maheedhar1305","id":7840552,"avatar_url":"https://avatars.githubusercontent.com/u/7840552?v=3","gravatar_id":"","url":"https://api.github.com/users/maheedhar1305","html_url":"https://github.com/maheedhar1305","followers_url":"https://api.github.com/users/maheedhar1305/followers","following_url":"https://api.github.com/users/maheedhar1305/following{/other_user}","gists_url":"https://api.github.com/users/maheedhar1305/gists{/gist_id}","starred_url":"https://api.github.com/users/maheedhar1305/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maheedhar1305/subscriptions","organizations_url":"https://api.github.com/users/maheedhar1305/orgs","repos_url":"https://api.github.com/users/maheedhar1305/repos","events_url":"https://api.github.com/users/maheedhar1305/events{/privacy}","received_events_url":"https://api.github.com/users/maheedhar1305/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-08-20T06:23:18Z","updated_at":"2015-03-31T20:26:57Z","closed_at":"2015-03-31T20:26:57Z","body":"Hi\r\n\r\nIs it possible to write a custom command in nightwatch.js that can make use of selenium API\r\n\r\nI need to upload files while running tests for my web app and I could not find a way to do that from nightwatchJs. Since selenium gives API for that and due to the fact that nightwatch runs on selenium web driver, I just wanted to know if it was possible to use selenium API to write a custom command for nightwatchJs. And if so, can someone show me a sample?\r\n\r\nAlso if you could enlighten me about a way to upload files from nightwatchJs itself, that would be great as well\r\n\r\nThanks in advance\r\nMaheedhar"}}