Synczation-js

 



const { protractor, element } = require("protractor");

describe('',function(){
it('',function(){

browser.waitForAngularEnabled(false);
browser.get('https://demos.telerik.com/aspnet-ajax/ajaxmanager/functionality/validation/defaultcs.aspx?product=ajaxpanel');
element(by.id('ctl00_ContentPlaceholder1_tbName')).sendKeys('sudheer');
element(by.id('ctl00_ContentPlaceholder1_tbEmail')).sendKeys('sudheer@qa.com');
element(by.name('ctl00$ContentPlaceholder1$RegisterButton')).click();
//Synczation-js
var EC = protractor.ExpectedConditions;
// Waits for the element with id 'abc' to be visible on the dom.
browser.wait(EC.visibilityOf(element(by.id('ctl00_ContentPlaceholder1_Label3'))), 5000);
browser.element(by.id('ctl00_ContentPlaceholder1_Label4')).getText().then(function(text){

console.log(text);
})
})
})


Comments

Popular posts from this blog

Implicit and Explicit Waits,FluentWait,PageLoadTimeOut

A Interview Questions- selenium