refactor WizardWelcome.js
This commit is contained in:
parent
93ed5e41b7
commit
0ce8dfa105
|
@ -1,19 +1,19 @@
|
|||
const logger= require('../entity/Logger.js').logger;
|
||||
const page=require('./Page.js').Page;
|
||||
const Page=require('./Page.js').Page;
|
||||
const By = require('selenium-webdriver/lib/by').By;
|
||||
const buttonContinue= By.className("button button_fill");
|
||||
|
||||
class WizardStep1 extends page.Page{
|
||||
class WizardStep1 extends Page {
|
||||
|
||||
constructor(driver){
|
||||
super(driver);
|
||||
this.URL;
|
||||
this.name = "WizardStep1 page: ";
|
||||
this.title="CROWDSALE CONTRACT";
|
||||
}
|
||||
|
||||
async isPresentButtonContinue(){
|
||||
var b=await super.isElementDisplayed(buttonContinue);
|
||||
logger.info(this.name+": is present button Continue: ");
|
||||
var b=await super.isElementDisplayed(buttonContinue);
|
||||
logger.info(this.name+": is present button Continue: "+b);
|
||||
return b;
|
||||
|
||||
|
|
|
@ -14,12 +14,12 @@ class WizardWelcome extends Page {
|
|||
}
|
||||
|
||||
async clickButtonNewCrowdsale() {
|
||||
logger.info(this.name + "button NewCrowdsale");
|
||||
logger.info(this.name + "clickButtonNewCrowdsale");
|
||||
return await super.clickWithWait(buttonNewCrowdsale);
|
||||
}
|
||||
|
||||
async clickButtonChooseContract() {
|
||||
logger.info(this.name + "button ChooseContract");
|
||||
logger.info(this.name + "clickButtonChooseContract");
|
||||
return await super.clickWithWait(buttonChooseContract);
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ class WizardWelcome extends Page {
|
|||
}
|
||||
|
||||
async isPresentButtonNewCrowdsale() {
|
||||
logger.info(this.name + ": isPresentButtonNewCrowdsale");
|
||||
logger.info(this.name + ": isPresentButtonNewCrowdsale:");
|
||||
return await super.isElementDisplayed(buttonNewCrowdsale);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue