Forum Discussion

seanMRoss's avatar
seanMRoss
Contributor
12 years ago
Solved

Intermittent JScript runtime error

Hi All



This error happens from time to time. If I ran the test 10 it could work 9/10 times and fail with this error.



The script is running aginst a login page that has a drop down menu.



The intial object property is set to the default drop down value.



Then the script reads in all the values from the dropdown menu and looks for a match.



It then selects this item.



As I said it works most of the time, but will fail in a loop.



Anyone can help?



Thanks

Sean
  • This could be a timing issue.



    Add some delay between selecting dropdown and item on dropdown.



2 Replies

  • It seems that by some reason the value of Del variable is an empty string. What is the last successfull message in the test log?

    Maybe before getting the clientDropDown object you should call

    Aliases.browser.LoginPage.Refresh();

  • jkrolczy's avatar
    jkrolczy
    Regular Contributor
    This could be a timing issue.



    Add some delay between selecting dropdown and item on dropdown.