Hi,
I am able to resolve it using following two lines.
@browser.span(:text,'').click // Click on list to expand it.
@browser.div(:text,'').click //click on element to select it.
I hope this is nice way.
Any suggestion from experts?
On Mon, Dec 29, 2014 at 3:32 PM, Sohail Mirza
I have reviewed many posts, but am unable to get passed this. I am
basically trying to verify if the text on the web page is displayed. The
text is Welcome under a span id element. It is not clear what the syntax
should be when referencing the text under the span id. I get an error that
Hello.
I have popups with frames (not iframes). And when I set values into
textboxes, selectlists and others it takes about 5 seconds for every
control.
I wonder, is this a defect of watir or there is some other way for
workaround?
Here is my code:
@browser.window(:title = Add New Plan).use do
I am attempting to figure out how to capture an element's text value (ex.
span id text value = Welcome), but I keep getting an error that it is
unable to locate the value. The following is my statement in the ruby
file. I tried online forums and documentation, but the syntax seems
tricky.