SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5

Thread: Difficult task

  1. #1
    Senior Member
    Join Date
    Jun 2004
    Location
    Miami,FL
    Posts
    949
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Difficult task

    I am trying to verify the occurrence of WebElements <DIV> to give you clear idea of what I'm trying to accomplish
    visit http://www.liveitup.com/travel/search.air
    book a flight from MIA to MCO
    follow the steps-keep default settings- until you reach the Billing Information page.
    there is a Shopping Cart bar on the left of this page, I am trying to verify the occurrence of these items: Flights:,Insurance:,Membership:
    in the cart. I used Object.Document , and object.getElementsByTagName("DIV")(5).innerHTML
    The only thing I could validate is the Shopping Cart Total by using the below code
    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">
    Set obj = browser(&quot;micClass:=Browser&quot.Object.Document
    Set ctrl = obj.all
    cnt = ctrl.length
    For i = 0 To cnt-1
    If ctrl(i).tagName = &quot;TD&quot; Then
    res1 = InStr(ctrl(i).outerText,&quot;Shopping Cart Total:&quot
    If res1 &gt; 0 Then
    dataTable(&quot;CartTotal&quot= (ctrl(i+1).innerText) 'CDbl
    msgbox dataTable(&quot;CartTotal&quot
    End If
    End If
    Next</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">Could you please help, thank you.
    "I realize it's an error, but no one is going to try to do that!"
    From "Top 10 Stupid Comments from Developers".

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Difficult task

    Looks a bit too tough as there is nothing concrete to distinguish and seeing the DOM tree the thing is based totally on DIV tags instead of a TD or TR. And that two it has a long parnet-child relations.

  3. #3
    Senior Member
    Join Date
    Jun 2004
    Location
    Miami,FL
    Posts
    949
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Difficult task

    very true , if you have to automate the same page how would you do it? for me the most important thing is validating the cart contants before purchasing , in fact this is the most important page since we are talking money and the whole idea of the site is to make money. don't you agree?
    "I realize it's an error, but no one is going to try to do that!"
    From "Top 10 Stupid Comments from Developers".

  4. #4
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Difficult task

    Yups. But the thing is that developers need to have a vision for the automation testing to make the application more favourable for automated testing and not only think on just providing the functionality.

  5. #5
    Senior Member
    Join Date
    Jun 2004
    Location
    Miami,FL
    Posts
    949
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Difficult task

    I totally agree.you will laugh when I tell you I am creating my scripts against the production environment, means we are way behind the developers. thank god it is functional testing not load testing.and the purpose of these scripts to validate the any new release.
    "I realize it's an error, but no one is going to try to do that!"
    From "Top 10 Stupid Comments from Developers".

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 11:53 PM.

Copyright BetaSoft Inc.