Forum Discussion
If I'm reading this correct, your answer "Yes. But I don't spot any code error either :(" to my previous question, suggests there's no errors during debug?
Now you are saying the error appears during playback and during debug? While debugging, where is the error occurring?
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();
}
- rraghvani6 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(),
- EkremMese16 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
- 4 days ago
- 4 days ago