SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    SQA Knight
    Join Date
    Sep 2001
    Location
    Bangalore,India
    Posts
    2,549
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Select radio item

    Hi,
    Recently I faced one pbm. I have written code to select one item from the radio list. Silk selects the given radio item, but it tries second time and getting exception.
    My code like below.
    webpage1.radiolist1.Select (sOptionAt)

    Any other tricks or work arounds to solve this problem....?

    ------------------
    Thanks & Regards,
    Palani.
    Thanks & Regards,
    Palani.
    http://tips-testing.blogspot.com/index.html
    Quote: Donít hesitate to initiate!

  2. #2
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Select radio item

    What's the exception you're getting?

    ------------------
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  3. #3
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Select radio item

    Hunch: Your tag is wrong or the item you're trying to select isn't actually there. Sometimes this can be a spacing issue. For example, rlsOptions.Select ("foo") is not the same as rlsOptions.Select ("foo ")

    But Tony's right: post what your exception is for us to understand better.

    - Dave

    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

  4. #4
    Senior Member
    Join Date
    Oct 2002
    Location
    Calgary, Alberta, Canada
    Posts
    101
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Select radio item

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by tmpalaniselvam:
    Hi,
    Recently I faced one pbm. I have written code to select one item from the radio list. Silk selects the given radio item, but it tries second time and getting exception.
    My code like below.
    webpage1.radiolist1.Select (sOptionAt)

    Any other tricks or work arounds to solve this problem....?

    <HR></BLOCKQUOTE>

    This is just a shot in the dark, but I have had problems with radiolists before, especially if the contents change dynamically. The test would work about half the time. I noticed that if I ran it with maybe one or two other test cases, it would work. When integrated with my test suite it would fail. In the end I used TypeKeys() to get around it.


    ------------------
    Beware of bugs in the above code; I have only proved it correct, not tried it."
    --Donald Knuth
    Beware of bugs in the above code; I have only proved it correct, not tried it.
    --Donald Knuth

  5. #5
    SQA Knight
    Join Date
    Sep 2001
    Location
    Bangalore,India
    Posts
    2,549
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Select radio item

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by dcreed:
    Hunch: Your tag is wrong or the item you're trying to select isn't actually there. Sometimes this can be a spacing issue. For example, rlsOptions.Select ("foo") is not the same as rlsOptions.Select ("foo ")
    <HR></BLOCKQUOTE>
    Hi,
    I'm getting below exception.
    ///////////////////////////
    [ ] VST_PEadminTransferSchedule.SelectTransferSchedule .Select ("Every:") tag="/[MainWin]$explorer5[1]/[BrowserChild]Set Up Transfer Schedule/[HtmlRadioList]Transfer Schedule*|#1"
    [ ] VST_PEadminTransferSchedule.SelectTransferSchedule .Select ("Every:") tag="/[MainWin]$explorer5[1]/[BrowserChild]Set Up Transfer Schedule/[HtmlRadioList]Transfer Schedule*|#1"
    [ ] VST_PEadminTransferSchedule.SelectTransferSchedule .Select ("Every:") tag="/[MainWin]$explorer5[1]/[BrowserChild]Set Up Transfer Schedule/[HtmlRadioList]Transfer Schedule*|#1"
    [ ] *** Error: Control is not responding
    [ ] -23500
    [ ] EXCEPT details ==&gt; Module:, Function: Select, Line:1
    [ ] EXCEPT details ==&gt; Module:total_case.t, Function: fPEAdminSetSchedule, Line:1310
    [ ] EXCEPT details ==&gt; Module:total_case.t, Function: main, Line:118

    ///////////////////////////
    While recording, I got the same statement like below. VST_PEadminTransferSchedule.SelectTransferSchedule .Select ("Every:")

    But while running, script throws this exception.
    Script: total_case.t
    Function: fPEAdminSetSchedule
    How can I solve the pbm.........?


    ------------------
    Thanks & Regards,
    Palani.
    Thanks & Regards,
    Palani.
    http://tips-testing.blogspot.com/index.html
    Quote: Donít hesitate to initiate!

  6. #6
    SQA Knight
    Join Date
    Sep 2001
    Location
    Bangalore,India
    Posts
    2,549
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Select radio item

    Hi,
    At last,I found the solution for this pbm..I searched on Silk Help and got the soln..Now it is working.
    ////////////
    Set the following option just before the line causing the error:
    Agent.SetOption(OPT_VERIFY_RESPONDING, FALSE)
    ////////////


    ------------------
    Thanks & Regards,
    Palani.
    Thanks & Regards,
    Palani.
    http://tips-testing.blogspot.com/index.html
    Quote: Donít hesitate to initiate!

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 02:34 PM.

Copyright BetaSoft Inc.