Thanks Mark, I can identify all the elements now.
-Ruchika
Subject : Re: [Webtest] How to get the value of dynamic attributes id and name?
Date : Fri, 14 Nov 2008 09:37:49 +0100
From : Marc Guillemot <[EMAIL PROTECTED]>
To : [email protected]
Hi,
if the id of your element is really generated randomly, this is surely
not something that you can use to identify your elements. Therefore you
have to look for other information allowing you to identify your
elements: class, parent element, ...
Cheers,
Marc.
--
Web: http://www.efficient-webtesting.com
Blog: http://mguillem.wordpress.com
ruchi24 wrote:
> Hi,
>
> I am looking for getting the value of the attributes id and name which
> are generated randomly of any element using canoo.
>
> I have div in my application which has no name and its id is generated
> using the Math.random function
> like id="tab_tabs'+(String(Math.round(Math.random() * 1000000)))+'".
>
> Full tag is like this :-
> div id="tab_tabs887260" class="tabButton touchButton"
> my:tabcontentid="sharedIframeDiv"
> my:frame="/myapp/flowController.htm?_flowExecutionKey=_cF25AD687-47BD-1528-6B6D-B5E49A71A95F_k4DF83CF4-0A43-59FF-B37C-8E8577448215&_eventId=machineSetupTab"
>
> my:iframename="tabiframe_0" my:link="null" style="width:
> 83px; height: 65px;">
>
>
> Now I have to click this element to call the iframe, so in canoo I have
> to use click element and provide id to it, which in my case I don't know
> what it is as it keeps varying.
>
> Secondly when I click this I get a iframe whose id and name both are
> randomly generated (ex :- id = "iframe_shared_'+ i, i is a random#)
>
> Full tag :-
> iframe id="iframe_shared_1093" class="tabPaneIframe" frameborder="no"
> scrolling="no" style="height: 515px;"
> src=""
> name="iframe_shared_1093">
>
> To get this frame in canoo I have to use followframe that requires id or
> name, which again in my case I don't know as its variable.
>
> I am really stuck and need your suggestion to achieve this. If this
> dosen't work with canoo then I might have to take some decision. Looking
> for you help.
>
> Thanks in advance,
> -Ruchika _______________________________________________ WebTest mailing
> list [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
- [Webtest] How to get the value of dynamic attributes id a... ruchi24
- Re: [Webtest] How to get the value of dynamic attrib... Marc Guillemot
- Re: [Webtest] How to get the value of dynamic attrib... Ruchika Badjatia

