SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jan 2004
    Location
    Hamburg, Germany
    Posts
    35
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    .Exists will not work

    I have the following code
    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">IamWalking.FensterSchließen.Click ()</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">which will close a poupwindow

    since the popup might not be displayed, I changed the code to:
    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">[-] if (IamWalking.FensterSchließen.Exists (5))
    [ ] IamWalking.FensterSchließen.Click ()</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">but now the FensterSchließen is not found anymore - why - what can I do?

  2. #2
    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: .Exists will not work

    what is the error message you are geting returned? Is it a Java application?
    ================
    Thanks,
    Tomás.

    Quis Custodiet ipsos custodes

  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: .Exists will not work

    Five seconds might not be enough. Try something like this:

    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">int tries = 0
    while (TRUE)
    do
    if (IamWalking.FensterSchließen.Exists (5))
    IamWalking.FensterSchließen.Click ()
    break
    else
    raise
    except
    tries++
    if (tries&gt;10)
    LogError(&quot;IamWalking.FensterSchließen never appeared&quot
    break</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">This pattern is one of my favorites. Otherwise, make sure that you don't want to use IamWalking.Exists instead of IamWalking.FensterSchließen.Exists.

    Also, consider using SetActive() and/or SetFocus() in your code if you still have problems.
    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
    Member
    Join Date
    Jan 2004
    Location
    Hamburg, Germany
    Posts
    35
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: .Exists will not work

    Thanks Chris - that is working !

 

 

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 10.71%
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 09:55 AM.

Copyright BetaSoft Inc.