Hi, I am facing the Key Error while running the CreateLead Test but not able to rectify this issue.Can you please help
Kindly check the attached zip file
InstructorJaspreet Replied on 27/01/2021
The issue is in reading the excel file. The maximum columns are not being read out because of which column is not being read. Update your file 'readingexcel.py' where you are reading the no. of maxcols. Part to be updated is given below:
maxcols=0 try: while not xls.checkemptycell(constants.DATASHEET,colstartrowindex,maxcols): maxcols=maxcols+1 print("maxcols are : " +str(maxcols)) except Exception: pass
Hi thanks for the update.This issue has been fixed but now in same script I am facing error while entering lead details.Last name is also getting entered in first name and lead is not getting saved
Screenshot linkS: https://drive.google.com/file/d/1bgJOCPNWLsFcQgjVD_ycijFrEkAvif-T/view?usp=sharing
InstructorJaspreet Replied on 29/01/2021
Use time.sleep(5) after entering firstname.
Hi I have applied time.sleep(5) in EnterleadDetails page class after first name but still facing same issue.Its still typing the last name in first name field.
Please help I am not able to proceed further.
Waiting for ans
InstructorJaspreet Replied on 03/02/2021
Replace the file given with the 'EnterLeadDetail.py'
Thanks for the solution.It works fine now
InstructorJaspreet Replied on 10/02/2021
Thank you for the update.