Skip to content

Instantly share code, notes, and snippets.

@christian-bromann My question is around the Custom Commands. I went through the example given here: http://webdriver.io/guide/usage/customcommands.html
Based on that created to JS files
1) getUrlAndTitle.js: which contains the code for custom command:
client.addCommand("getUrlAndTitle", function(customVar, cb) {
this.url(function(err,urlResult) {
this.getTitle(function(err,titleResult) {
@christian-bromann My question is around the Custom Commands. I went through the example given here: http://webdriver.io/guide/usage/customcommands.html
Based on that created to JS files
1) getUrlAndTitle.js: which contains the code for custom command:
client.addCommand("getUrlAndTitle", function(customVar, cb) {
this.url(function(err,urlResult) {
this.getTitle(function(err,titleResult) {