Tag Info

Hot answers tagged

3

I actually wrote that library while I was at a company creating automation for them. I had plans to open source it, but unfortunately never was able to and have since moved to a different company. In the presentation I was using the library I created, however you can build your own abstraction layer that does many of the things I talked about as well, or ...


1

There are two parts to this. The first is that you need to be sure that your xPath is correct. One way to validate that is to use a tool like Firefinder (a firefox extension for firebug). Navigate to your page and be sure the element you need is present and then hit f12 and go to the FireFinder section. Enter in the xpath you are using and see if it can ...


1

Can you find it if you use the .Text and then clicking it if it matches? String Expectedtext = "Procurement" String ProcurementButtonText = driver.FindElement(By.XPath("//td")).Text; if (ProcurementButtonText == Expectedtext) { driver.FindElement(By.XPath("//td")).click() }


1

Often times on extremely dynamic pages, I don't simply have a list of elements in my page object, instead I will implement helper functions that will interact with the dynamic data/elements on the page. For example, if there you are testing an e-mail inbox instead of creating elements for message1, message2, message3, etc instead I would implement a ...


1

Your question hints at a couple of questions: What Is a Page Object? A page object is code written to model an actual page (or part of a page) in a web application. Eg. each page in your app, would have an associated page object file that provides the “services” that the actual page offers. Eg. if there’s a button on a page in your application, you would ...



Only top voted, non community-wiki answers of a minimum length are eligible