Data Driven Execution Error

2 posts, 0 answers
  1. lora
    lora avatar
    8 posts
    Member since:
    Aug 2011

    Posted 30 Aug 2011 Link to this post

    I am testing a login process using a data binded Excel spreadsheet with an array of usernames. I have attached my data source and binded it. I have also set the data driven editor to $(column name) for the test step.

    I performed EVERY step outlined in your Local Data Driven Test and am still getting the following error:

    8/30/2011 2:08:41 PM' - Detected DataDriven Test. Starting data iterations.
    '8/30/2011 2:08:41 PM' - [Iteration #1: (Login=cindy.thomas)]
    Overall Result: Fail'8/30/2011 2:08:52 PM' - 'Fail' :
    1. Set 'ContentPlaceHolder1UsernameTextBoxText' text to '' - DataDriven: [$(Login)]------------------------------------------------------------
    Failure Information: ~~~~~~~~~~~~~~~Unable to locate element. Details: Attempting to find [Html] element using Find logic (Html): [id 'Exact' ctl00_ContentPlaceHolder1_UsernameTextBox] AND [tagname 'Exact' input]Unable to locate element. Search failed!

    Why am I getting this error?

  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 31 Aug 2011 Link to this post

    Hello Lora,

    Looking at the core message of the error:

    Unable to locate element. Details: Attempting to find [Html] element using Find logic (Html): [id 'Exact' ctl00_ContentPlaceHolder1_UsernameTextBox] AND [tagname 'Exact' input]Unable to locate element. Search failed!

    We can see that the problem actually has nothing to do with the test being data driven. The test was simply unable to locate the needed textbox to be acted on. There are multiple possibilities that can cause this problem. I have outlined some of there in this KB article.

    If you're still unable to resolve this problem yourself after following these steps, please export the test results and attach the exported .zip file for us to analyze.

    Regards,
    Cody
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
Back to Top