pageobjects

Selenium WebDriver [Java] How do I store the elements of an iframe in a PageFactory

I am following Page Object Model to automate a flow in one application. In one of the module I have to add a new post which have a "Title" and a "Body" field. As of now, I am able to send the text in the "Title" field as it is in the Top Window. But the "Body" is within an iframe. After passing the...

How can I get some particular link form the links collection

I'm using watir-webdriver have several lines of the same code shown below: ... <p class="schedule-text"> by <a href="http://www.somesite.com">MarketingClub</a> in <a href="http://www.somesite2.com">Marketing</a> </p> I need to get the first links included in p tag and the second links included in p...

LINQ performance issue while trying to find element collection by tag name and then find a specfic one by id or text using selenium webdriver

I am not an expert in LINQ. Here is what I am trying to do. A. I am finding the collection of the elements of a page using the selenium webdriver API private ReadOnlyCollection<IWebElement> ReturnPageElements() { return Driver.FindElements(PageElementSelector); } where PageElementSelector is all the...

Disabling browser javascript with Selenium webdriver + specflow + c# + Pageobject + pagefactory

I want to disable firefox javascript and run my automated test. I am using Specflow + c# and selenium. I am also using PageObject pattern and Page factory. My feature file goes this way : Scenario: Search for item after disabling the javascript Given I am a ACUST When I disable the javascript And I...

Accessing a nested element 3 levels deep using page objects

Using the Page Object model and gem I want to access an element that is nested 3 layers deep. I've successfully accessed nested elements that are 2 elements deep but for 3 the same method isn't working. 3 elements defined in my Page Object: div(:serv_info, :class => "service-info") div(:validate...

Accessing a table within a table (Watir/PageObject)

I'm running Watir-webdriver with Cheezy's PageObject for Cucumber testing. I am new to ruby, testing, pageobjects, and watir. I am trying to access a table. Specifically, I'm trying to click an image in the 7th column. This is my code: tables.downcase! tables.gsub!(/\s+/, '_') tables_elements = self...