Forum Discussion
EkremMese1
Contributor
Sorry for confusion. When I said I don't spot any code error I meant that I have a problem, the code giving the error but I can't find it. Why I have this error?
And error is appears in same line which is line 12 below:
function searchForExistingRecord()
{
navigate_person_search_form();
let page = browser.pagePersonEidss;
page.Wait();
let textbox = page.formPersonsearchform;
let textbox3 = textbox.textboxPersonId;
textbox3.WaitProperty("Enabled", true, 2000);
let str = DDT.CurrentDriver.Value("PersonID");
Log.Message(str);
textbox3.setText(str);
textbox.buttonSearchbutton.ClickButton();
aqObject.CheckProperty(textbox.hyperLinkInGrid, "contentText" , cmpEqual, DDT.CurrentDriver.Value("PersonID"));
browser.Close();
}
rraghvani
7 months agoChampion Level 3
Why don't you comment out all lines of code accept for 12 and 13, to test if line 12 works?
And you are calling the following methods before searchForExistingRecord?
DDT.ExcelDriver(...)
DDT.CurrentDriver.DriveMethod()
Based on what you have provided, this is the results of it working by calling search_with_loop(),
- EkremMese17 months agoContributor
When I comment out all the lines and just left the lines 12 and 13 it works.
Related Content
- 2 years ago
- 8 years ago
- 7 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago