[Wtr-general] Unable to Click on tab - any workaround??
Anil Kumar Das
anil.kumar.das at gmail.com
Wed Apr 19 10:15:53 EDT 2006
Michael,
little confusion, I didn`t try with "" (empty), the exact name in source
code is "displaySecondTab" and label of this tab displaying on web page is
"Line Items"
Provided one of this value "displaySecondTab" or "Line Items" in empty space
in various combination, exactly like mentioned below:
$ie.link(:url, "displaySecondTab").click
$ie.button(:name, "displaySecondTab").click
$ie.image(:src, "displaySecondTab").click
$ie.link(:text, "displaySecondTab").click
$ie.image(:text, "displaySecondTab").click
$ie.link(:scr,"displaySecondTab").click
$ie.link(:url, "displaySecondTab").click
$ie.attach(:title,"displaySecondTab").click
$ie.link(:url, "Line Items").click
$ie.button(:name, "Line Items").click
$ie.image(:src, "Line Items").click
$ie.link(:text, "Line Items").click
$ie.image(:text, "Line Items").click
$ie.link(:scr,"Line Items").click
$ie.link(:url, "Line Items").click
$ie.attach(:title,"Line Items").click
On 4/18/06, Michael Bolton <mb at michaelbolton.net> wrote:
>
> I can't see how the empty double quotes are helping matters; you're not
> telling Watir which tabs you want to click (or you're telling it to click a
> tab with no name). The absence of the actual source code on which you're
> trying to work doesn't help either; you're not telling us the HTML that
> you're targeting (or you're asking us to solve a problem with no
> data). There's a pattern here. Tell Watir which tab you want to click, or
> show us the HTML source code that you'd like analyzed, and things might get
> better.
>
> ---Michael B.
>
>
>
>
> ------------------------------
> *From:* wtr-general-bounces at rubyforge.org [mailto:
> wtr-general-bounces at rubyforge.org] *On Behalf Of *Anil Kumar Das
> *Sent:* April 18, 2006 4:17 PM
> *To:* wtr-general at rubyforge.org
> *Subject:* [Wtr-general] Unable to Click on tab - any workaround??
>
>
>
> I have a web application for SALES ORDER Module....
>
> -------------------------------------
> Order Detail | Parties |Line Items
> -------------------------------------
> Onclick of order detail application opens 10-20 fields to add order
> information, party tab shows 10-20 fields to enter party information and
> Line Items shows fields to enter product details
> When I saw source code of this web page I found ..
> displayZerothTab,displayFirstTab,displaySecondTab were the variables which
> takes values of onClick from user action
>
> I tried all possible following combination but couldn`t solve this issue
> # $ie.link(:url, "").click
> # $ie.button(:name, "").click
> $ie.image(:src, "").click
> $ie.link(:text, "").click
> $ie.image(:text, "").click
> $ie.link(:scr,"").click
> $ie.link(:url, "").click
> $ie.attach(:title,"").click
>
> with displaySecondTab & Line Items (lebal of this tab)
>
> I was wondering if there is any workaround for clicking "Tab" like
> button,image,url etc in watir??
> Waiting for reply
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
--
-----------------------------------------------------------------
Diamond was also an ordinary coal before it passed burning tests..!
Some goals are so worthy it's glorious even to fail...!!
--------------------------------------------------------------------
Regards,
Anil Kumar Das
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060419/2b73d14c/attachment.html
More information about the Wtr-general
mailing list