1313import anhtester .com .projects .website .crm .pages .Projects .ProjectPage ;
1414import anhtester .com .projects .website .crm .pages .SignIn .SignInPage ;
1515import anhtester .com .utils .LocalStorageUtils ;
16- import anhtester .com .utils .Log ;
1716import anhtester .com .utils .ObjectUtils ;
1817import anhtester .com .utils .WebUI ;
1918import com .google .zxing .NotFoundException ;
@@ -340,17 +339,18 @@ public void handleUploadFile() {
340339 WebUI .sleep (1 );
341340
342341 //Cách 1 sendKeys link từ source
343- WebUI .uploadFileSendkeys (By .xpath ("//input[@id='uploadFile']" ), Helpers .getCurrentDir () + "src/test/resources/DOCX_File_01.docx" );
342+ WebUI .uploadFileSendkeys (By .xpath ("//input[@id='uploadFile']" ), Helpers .getCurrentDir () + "src\\ test\\ resources\\ testdatafile\\ DOCX_File_01.docx" );
343+
344+ WebUI .sleep (1 );
344345
345346 //Cách 2 mở form local máy nên file là trong ổ đĩa máy tính
346- WebUI .uploadFileForm (By .xpath ("//input[@id='uploadFile']" ), "D: \\ Document .csv" );
347+ WebUI .uploadFileForm (By .xpath ("//input[@id='uploadFile']" ), Helpers . getCurrentDir () + "src \\ test \\ resources \\ testdatafile \\ LoginCSV .csv" );
347348
348349 WebUI .sleep (3 );
349350 }
350351
351352 @ Test
352353 public void handleTable1 () {
353- Log .info ("handleTable1" );
354354 WebUI .getToUrl ("https://colorlib.com/polygon/notika/data-table.html" );
355355 System .out .println (WebUI .getValueTableByColumn (2 ));
356356 }
@@ -376,7 +376,8 @@ public void handlePrintPopup() throws AWTException {
376376 WebUI .waitForPageLoaded ();
377377 String originalWindow = driver .getWindowHandle ();
378378
379- WebUI .clickElement (By .xpath ("//td[normalize-space()='user01@anhtester.com']" ));
379+ WebUI .setText (By .id ("email" ), "admin@mailinator.com" );
380+ WebUI .setText (By .id ("password" ), "123456" );
380381 WebUI .clickElement (By .xpath ("//button[normalize-space()='Login']" ));
381382 WebUI .waitForPageLoaded ();
382383 WebUI .clickElement (By .xpath ("//a[@role='button']" ));
@@ -419,7 +420,6 @@ public void handlePrintPopup() throws AWTException {
419420
420421 @ Test
421422 public void handleAuthentication () {
422-
423423 // Authentication username & password
424424 String username = "admin" ;
425425 String password = "admin" ;
0 commit comments