Yes, link should be topic. I get the same results with /n (new line) though I need assistance with verifying that header displays.
When I highlight the line on the webpage there is a break between the MEMBER DISCUSSIONS: and AMBULATORY/OUTPATIENT CARE headers. I am not able to verify the entire header. Not sure why. I thought it might be because it is two separate headers with the   at the end of the first header <H1> The reason I use upcase is because on the page itself it displays in Upper Case. Thank you, Joe On Oct 25, 3:41 am, Željko Filipin <[email protected]> wrote: > On Tue, Oct 25, 2011 at 4:23 AM, Joe Fl <[email protected]> wrote: > > topic = 'Ambulatory/Outpatient Care' > > completeString = "Member Discussions: #{link}" > > Should "link" be replaced with "topic"? > > completeString = "Member Discussions: #{topic}" > > > if @browser.text.include? completeString.upcase > > Why are you using "upcase"? > > IRB is your friend: > > > browser.text > > => "Member Discussions: \nAmbulatory/Outpatient Care" > > > topic = 'Ambulatory/Outpatient Care' > > => "Ambulatory/Outpatient Care" > > > completeString = "Member Discussions: #{topic}" > > => "Member Discussions: Ambulatory/Outpatient Care" > > > completeString.upcase > > => "MEMBER DISCUSSIONS: AMBULATORY/OUTPATIENT CARE" > > Ruby is case sensitive. If you compare "MEMBER DISCUSSIONS" and "Member > Discussions" it will say it is not the same. > > Also, there is "\n" (new line) in browser.text, but it is not > in completeString. > > By the way, "the Ruby way"(tm) of naming completeString would > be complete_string. > > Željko > -- > watir.com - community manager > watir.com/book - author > watirpodcast.com - host -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
