SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Junior Member
    Join Date
    May 2005
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Problem with Silk

    Hi, Silk Gurus:

    I am new to silk and I am facing several problem (I am using 7.5 test web app):

    1) click() doesnt work, if I want to click,say, a html link, the recorded click() doesn't work, I have to manually change to DoClick()
    2) Silk fails on check()/Uncheck() the checkboxes, complains that control doesn't respond.

    3) The recorded script doesn't play back on a pop up window.

    Thanks for the answers

    Ethan

  2. #2
    Senior Member
    Join Date
    Aug 2003
    Location
    NY
    Posts
    708
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Problem with Silk

    Ethan,

    Record-playback would not always work. You would have to tweak your scripts in most cases.

    Click() - shuold normally work - try adding a sleep before it. If the link is by a javascript or a popup menu, DoClick would be a better option since Click fails to consider proper co-ordinates.

    Sleep again would solve your Control not responding problem. You can also use Agent.SetOption(OPT_VERIFY_RESPONDING, false) to diasble receiving any such errors.

    I am not sure what you mean by your 3rd question.

    Thanks and Regards,
    Harshil

  3. #3
    Super Member
    Join Date
    Jul 2003
    Location
    Boulder, CO
    Posts
    1,276
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Problem with Silk

    Sleeping is always a very helpful thing... I wish I could call Sleep(10000000) on myself right now.

    Regarding #3 > Check for a SetActive() call at the beginning of the 'dialog code'. Also, you may need a little sleep to give the dialog time to appear. Last, the dialog may need to be handled using TypeKeys. Try re-recording using only keystrokes to manipulate the dialog... make sure you are good with TAB, ALT-TAB, CTRL-TAB, etc. (especially don't forget TAB!).
    Chris R Mead

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

  4. #4
    Junior Member
    Join Date
    May 2005
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Problem with Silk

    Hi, Harshil and Chris:

    Thanks a lot for your replies. I think the problem I am encoutering is that silk somehow don't recognize the object at the right location. For example, if I use Windows Identifier to get information about an object, the "rectangular identifier" is always off. So if i put the cursor on top of a button, the identifier won't show the info about this button but something else. So to my question, I am seeing:

    1) if i have several html links close to each other, then after i record, the Click() method would work, but click on wrong link.

    2) Same, if I have several check boxes close to each other, then the check() might luckily check some other check boxes, and won't fail.

    3) If I use DoClick() to pop up a javascript pop up, (for example, an delete confirmation), the script won't identify the pop up and hangs.

    have you guys seen the "offset" problem with silk?

    Thanks a lot

    Ethan

  5. #5
    Senior Member
    Join Date
    Sep 2001
    Location
    Dublin
    Posts
    232
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Problem with Silk

    1) Record/Playback is a bad idea. When you record the html links on the page each of them should have an unique tag assigned to them as in

    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">HtmlLink TestLink1
    tag &quot;#1&quot; //or unique Caption as &quot;Test Link 1&quot;
    HtmlLink TestLink2
    tag &quot;#2&quot; //or Caption &quot;Test Link 2&quot;</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">so to call a particular link in your test case or method use syntax below
    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">PageName.TestLink1.Click() // Or DoClick()</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">2) The issue here could be the same as above. Check that the correct Caption or index number is assigned to the check boxes. Record - Window Declarations and hover over the check box and check captions are correct as sometimes when these checkboxes are beside each the caption name can be reversed and take different named tags to what you might expect as in

    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">HtmlCheckBox FirstCheckBox
    tag &quot;Second Check Box&quot;
    HtmlCheckBox SecondCheckBox
    tag &quot;First Check Box&quot;</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">3) As Chris said use the PageName.SetActive()
    ================
    Thanks,
    Tomás.

    Quis Custodiet ipsos custodes

  6. #6
    Super Member
    Join Date
    Jul 2003
    Location
    Boulder, CO
    Posts
    1,276
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Problem with Silk

    Do you have the recorder set up to show you all the multitag stuff that it can? You edit the options from the Record Window Declarations &gt; Options button, I think.

    Do you know what link you want to click on based on the target URL, or does it change? If the URL does not change, you can create a tag based on the URL and silktest will figure out where to click based on the 'item' whose link points to the URL in question (i.e. silktest still clicks the item).

    Here is an example:
    tag "$*?subdirectoryName?targetScript.cgi*[1]"
    Chris R Mead

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

  7. #7
    Advanced Member
    Join Date
    Mar 2002
    Location
    Earth, USA, New York, Western
    Posts
    759
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Problem with Silk

    I use to do a simple click() and on a new build that quit working I now do
    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">[ ] BrowserPage.GenerateDecl ()
    [ ] MS100.WF.UAS.Deposits.TableBorder.CheckingSavingCD s.AcctList.AcctSection.UserChecking.HtmlLink(&quot ;#{iLinkCount}&quot.SetFocus ()
    [ ] MS100.WF.UAS.Deposits.TableBorder.CheckingSavingCD s.AcctList.AcctSection.UserChecking.HtmlLink(&quot ;#{iLinkCount}&quot.DoClick ()</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">Hope this helps,
    Bruce.

  8. #8
    Junior Member
    Join Date
    May 2005
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Problem with Silk

    Hi, Shree:

    Any chance I can contact you? I can't make it to work..

    Thanks a lot

    Ethan

  9. #9
    Senior Member
    Join Date
    Dec 2001
    Location
    Boston,MA, USA
    Posts
    162
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Problem with Silk

    Send me an email at shreev@yahoo.com
    -Shree

    *************************************************
    The more I learn, the more I realize how little I know!

  10. #10
    Junior Member
    Join Date
    May 2005
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Problem with Silk

    Thanks Guys for your help.

    My problem is that DoClick() always work, but Click() doesn't since it can't recognized the location (location offset).

    Any Ideas?

 

 
Page 1 of 2 12 LastLast

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 8.82%
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 06:53 PM.

Copyright BetaSoft Inc.