To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!More about adding a collaborator
As a web developer
I want to locate span elements
So that I can write tests that make assertions about their content
I define a page class as:
class PageWithSPAN < BasePageClass include WatirPageHelper span :element end
- span element is located
I should be able to locate the element with the following code:
page = PageWithSPAN.new true page.element_span.exists?.should be_true
- span text is extracted
I should be able to execute the following assertion:
page = PageWithSPAN.new true page.element.should == 'span content'
Last published about 7 years ago by alisterscott.