Tag Info

New answers tagged

1

I like the method that is used by the conversion from Selenium IDE to Selenium C# personally, which is as follows: for (int second = 0;; second++) { if (second >= 60) Assert.Fail("timeout"); try { if (IsElementPresent(By.Id("blargh")"))) break; } catch (Exception) ...


0

This is an interesting question that I have been pondering myself. I am currently using a PageObject design using PageFactory IWebElements (C#). I do not follow this requirement: "Methods return other PageObjects". I will share my design and let others decide if this approach is "also" bad. This approach may do what you are trying to do but a little ...


0

YAGNI: You ain't gonna need it. So why do extra work if you will not need it? Link from "original wiki", created by Ward Cunningham in 1995 and recommended read for all software developers: YAGNI: "Always implement things when you actually need them, never when you just foresee that you [may] need them."


0

No, no and no. :) Do not initialize all your page objects at the start, what if your application keeps growing and growing. We already have hundreds of page objects, this could potential slow down all your tests in the suite. We always use the following way to access a Page: "Methods return other PageObjects" Example from Ubuntu acceptance testing: An ...


3

In my opinion, yes, it does. However there isn't really a single way to implement this model that just works. You have to really think about the structure of your website in terms of it's pages, and figure out how you can represent that structure in your code. For one company I worked for, I used the page object model against pages that were very simple ...


3

I had similar question few years back. At that point I had only seen page object based implementation. In my current company we have a single framework that manages mobile, web, web services. A nice presentation of page object challenges is available in http://www.slideshare.net/abagmar/perils-of-pageobject-pattern. There is also a youtube session on the ...


1

Yes. It's documented in official documentation. Also you can find an example here to understand better / start with.



Top 50 recent answers are included