[Wtr-general] Newbie Question: Verify and Then Click URL
MR
forum-watir-users at openqa.org
Wed Sep 6 10:52:04 EDT 2006
I believe that the link that I am trying to identify generates a shortcut based on nearby table data. For example, if I view the page in a browser and hold the mouse over the link, I do NOT see the regular expression ('B8110+002')that I am searching for. If, however, I view the source code, I see the regular expression within a url that appears as such:
<a href="/registr/ViewSections.tap?service=direct&service=1&service=sectionsTable.actions.addLink&sp=y2%2F163%2F4512%2F5885%2F5885%2F915%2F19%2Fnull%2Fnull%2Fnull%2F0%2F0%2F0%2F0%2F0%2F3.0%2F162%2Fnull%2F915&sp=SB8110+002" title="TEST" id="href_section_5885_for_offering_915">[add]</a>
CODE snippet:
test_search = 'B8110+002'
puts test_search
test_var = ie.link(:url,/#{linkForClass}/).exists?
puts test_var
This outputs:
B8110+002
false
I iterated through the tables in the page. It appears that the table that I am searching for a link within doesn't have an ID or name.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=3965&messageID=10933#10933
More information about the Wtr-general
mailing list