[wtr-general] Re: Dynamically generated elements on Ajax app

2009-08-10 Thread H Kogi
Sorry that my last email was cutoff.  I was able to interact using :text for
a number of controls and tabs.  Certainly this will not be my last issue on
ajax application but I will search the group and then will start a new
thread for a new issue.  At this point, the development will not change the
way they generate :id's.

Thanks.
Hiroko Kogi
On Fri, Aug 7, 2009 at 9:27 AM, H Kogi hko...@gmail.com wrote:

 Thank you for your response.  I have been searching information for some
 time and have not found anything that exactly resolve my problem.  (I do use
 some code I found to use 'left-click' instead of standard 'click'  for
 tabs).  Tab labels, buton labels, and text labels stay the same.  User will
 interact based on label with an exception of selecting an item from
 list which will not stay the same.  Problem is not limited to one area or
 screen or one type of elements.  The application has 7 tabs across the top
 which always stay visible.  Accessing each tab will load different pages.
 Layout of each page is totally different.  One screen may have a vertical
 navigation pane on the left and the right side may be
 split horizontally.  One of horizontal pane may have several tabs across or
 several buttons on the top.  Using index will not be reliable since it is
 content dependent.  I hope this is detail enough to provide me some
 suggestions.

 Thanks in advance.
 Hiroko Kogi


 I finally talked to the developer who
   On Thu, Aug 6, 2009 at 9:59 AM, Mark Anderson 
 mander...@drillinginfo.com wrote:


 The standard first answer to this question is how do you locate the
 element
 on the screen when running the test manually?

 Is it in a particular area?  Does it always have the same text?  Is it the
 third one on the page?

 Without that level of detail, we will have trouble giving you more than
 very
 general suggestions - although you might search the group if general
 suggestions might be helpful.

 Another piece of advice would be to work closely with the team that is
 writing the code.  If they are changing the ids, ask them to stop.  If
 things are being randomly generated, ask about including some sort of
 constant identifier that you can use for testability.

Hope this helps,
/\/\ark

  -Original Message-
  From: watir-general@googlegroups.com [mailto:watir-
  gene...@googlegroups.com] On Behalf Of HK
  Sent: Wednesday, August 05, 2009 2:48 PM
  To: Watir General
  Subject: [wtr-general] Dynamically generated elements on Ajax app
 
 
  I am trying to automate testing on Ajax applications and only using
  Watir for 7 weeks.  Majority of elements are dynamically generated.
  Values for id's keep changing and class values are not unique.  Does
  anyone have suggestions how to deal with them?  Some sample below.
 
  DIV class=x-panel-header x-panel-header-noborder x-unselectable
  id=ext-gen709 style=MozUserSelect: none; KhtmlUserSelect: none
  unselectable=on jQuery1249499643700=133
 DIV class=x-tool x-tool-toggle x-tool-collapse-south id=ext-
  gen714 jQuery1249499643700=134nbsp;/DIV
 SPAN class=x-panel-header-text id=ext-gen734some text here/
  SPAN
  /DIV
 
 
  TR
TD class=x-btn-left
  Inbsp;/I
/TD
TD class=x-btn-center
  EM unselectable=on
BUTTON class=x-btn-text id=ext-gen821 style=OVERFLOW-Y:
  hidden; OVERFLOW-X: hidden; OVERFLOW: hidden; WIDTH: 56px
  jQuery1249499643700=152Label here/BUTTON
  /EM
/TD
TD class=x-btn-right
  Inbsp;/I
/TD
  /TR
 
  
 
 
  __ Information from ESET NOD32 Antivirus, version of virus
  signature database 4309 (20090805) __
 
  The message was checked by ESET NOD32 Antivirus.
 
  http://www.eset.com
 
 
  __ Information from ESET NOD32 Antivirus, version of virus
  signature database 4312 (20090806) __
 
  The message was checked by ESET NOD32 Antivirus.
 
  http://www.eset.com
 


 __ Information from ESET NOD32 Antivirus, version of virus
 signature
 database 4312 (20090806) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.com




 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Dynamically generated elements on Ajax app

2009-08-07 Thread H Kogi
Thank you for your response.  I have been searching information for some
time and have not found anything that exactly resolve my problem.  (I do use
some code I found to use 'left-click' instead of standard 'click'  for
tabs).  Tab labels, buton labels, and text labels stay the same.  User will
interact based on label with an exception of selecting an item from
list which will not stay the same.  Problem is not limited to one area or
screen or one type of elements.  The application has 7 tabs across the top
which always stay visible.  Accessing each tab will load different pages.
Layout of each page is totally different.  One screen may have a vertical
navigation pane on the left and the right side may be
split horizontally.  One of horizontal pane may have several tabs across or
several buttons on the top.  Using index will not be reliable since it is
content dependent.  I hope this is detail enough to provide me some
suggestions.

Thanks in advance.
Hiroko Kogi


I finally talked to the developer who
On Thu, Aug 6, 2009 at 9:59 AM, Mark Anderson mander...@drillinginfo.comwrote:


 The standard first answer to this question is how do you locate the element
 on the screen when running the test manually?

 Is it in a particular area?  Does it always have the same text?  Is it the
 third one on the page?

 Without that level of detail, we will have trouble giving you more than
 very
 general suggestions - although you might search the group if general
 suggestions might be helpful.

 Another piece of advice would be to work closely with the team that is
 writing the code.  If they are changing the ids, ask them to stop.  If
 things are being randomly generated, ask about including some sort of
 constant identifier that you can use for testability.

Hope this helps,
/\/\ark

  -Original Message-
  From: watir-general@googlegroups.com [mailto:watir-
  gene...@googlegroups.com] On Behalf Of HK
  Sent: Wednesday, August 05, 2009 2:48 PM
  To: Watir General
  Subject: [wtr-general] Dynamically generated elements on Ajax app
 
 
  I am trying to automate testing on Ajax applications and only using
  Watir for 7 weeks.  Majority of elements are dynamically generated.
  Values for id's keep changing and class values are not unique.  Does
  anyone have suggestions how to deal with them?  Some sample below.
 
  DIV class=x-panel-header x-panel-header-noborder x-unselectable
  id=ext-gen709 style=MozUserSelect: none; KhtmlUserSelect: none
  unselectable=on jQuery1249499643700=133
 DIV class=x-tool x-tool-toggle x-tool-collapse-south id=ext-
  gen714 jQuery1249499643700=134nbsp;/DIV
 SPAN class=x-panel-header-text id=ext-gen734some text here/
  SPAN
  /DIV
 
 
  TR
TD class=x-btn-left
  Inbsp;/I
/TD
TD class=x-btn-center
  EM unselectable=on
BUTTON class=x-btn-text id=ext-gen821 style=OVERFLOW-Y:
  hidden; OVERFLOW-X: hidden; OVERFLOW: hidden; WIDTH: 56px
  jQuery1249499643700=152Label here/BUTTON
  /EM
/TD
TD class=x-btn-right
  Inbsp;/I
/TD
  /TR
 
  
 
 
  __ Information from ESET NOD32 Antivirus, version of virus
  signature database 4309 (20090805) __
 
  The message was checked by ESET NOD32 Antivirus.
 
  http://www.eset.com
 
 
  __ Information from ESET NOD32 Antivirus, version of virus
  signature database 4312 (20090806) __
 
  The message was checked by ESET NOD32 Antivirus.
 
  http://www.eset.com
 


 __ Information from ESET NOD32 Antivirus, version of virus
 signature
 database 4312 (20090806) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.com




 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Dynamically generated elements on Ajax app

2009-08-06 Thread Mark Anderson

The standard first answer to this question is how do you locate the element
on the screen when running the test manually?

Is it in a particular area?  Does it always have the same text?  Is it the
third one on the page?

Without that level of detail, we will have trouble giving you more than very
general suggestions - although you might search the group if general
suggestions might be helpful.

Another piece of advice would be to work closely with the team that is
writing the code.  If they are changing the ids, ask them to stop.  If
things are being randomly generated, ask about including some sort of
constant identifier that you can use for testability.

Hope this helps,
/\/\ark

 -Original Message-
 From: watir-general@googlegroups.com [mailto:watir-
 gene...@googlegroups.com] On Behalf Of HK
 Sent: Wednesday, August 05, 2009 2:48 PM
 To: Watir General
 Subject: [wtr-general] Dynamically generated elements on Ajax app
 
 
 I am trying to automate testing on Ajax applications and only using
 Watir for 7 weeks.  Majority of elements are dynamically generated.
 Values for id's keep changing and class values are not unique.  Does
 anyone have suggestions how to deal with them?  Some sample below.
 
 DIV class=x-panel-header x-panel-header-noborder x-unselectable
 id=ext-gen709 style=MozUserSelect: none; KhtmlUserSelect: none
 unselectable=on jQuery1249499643700=133
DIV class=x-tool x-tool-toggle x-tool-collapse-south id=ext-
 gen714 jQuery1249499643700=134nbsp;/DIV
SPAN class=x-panel-header-text id=ext-gen734some text here/
 SPAN
 /DIV
 
 
 TR
   TD class=x-btn-left
 Inbsp;/I
   /TD
   TD class=x-btn-center
 EM unselectable=on
   BUTTON class=x-btn-text id=ext-gen821 style=OVERFLOW-Y:
 hidden; OVERFLOW-X: hidden; OVERFLOW: hidden; WIDTH: 56px
 jQuery1249499643700=152Label here/BUTTON
 /EM
   /TD
   TD class=x-btn-right
 Inbsp;/I
   /TD
 /TR
 
  
 
 
 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 4309 (20090805) __
 
 The message was checked by ESET NOD32 Antivirus.
 
 http://www.eset.com
 
 
 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 4312 (20090806) __
 
 The message was checked by ESET NOD32 Antivirus.
 
 http://www.eset.com
 
 

__ Information from ESET NOD32 Antivirus, version of virus signature
database 4312 (20090806) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---