Posts

Showing posts from March, 2017

Using page object model with Telerik Framework

Image
In this blog we are going to talk about how to use Page Object Model to arrange your page UI elements in your test. Page object Model is a design pattern used  to create  Object Repository  for web UI elements  in test automation. Page object Model is used heavily in selenium but its is a good practice to use it in Telerik framework because we don't get a pre populated DOM  like in Telerik test studio. Actually we are using a modified Page Object Model in here, Lets take a login scenario as an example Login Page With out using Page object model the login script will look like this HtmlInputText Uname = myManager.ActiveBrowser.Find.ById("username").As<HtmlInputText>(); HtmlInputText Pass = myManager.ActiveBrowser.Find.ById("password").As<HtmlInputText>(); HtmlInputButton login = myManager.ActiveBrowser.Find.ById("loginbutton").As<HtmlInputButton>(); myManager.ActiveBrowser.Actions.SetText(Uname, "User...