Skip to main content

Posts

Showing posts from January, 2020

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlObject at utility.ExcelUtils.setExcelFile

    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlObject Error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlObject Solution: There are two ways we can resolve this issue: 1 st solution: 1.        Include two more jar. xmlbeans-2.3.0.jar       dom4j-1.6.1.jar 2.       You must use HSSFWorkbook instead of   XSSFWorkbook after add jar. Note: It is required for the files with .xlsx formats only, not for just .xls formats 2 nd Solution: Just change your file format from xlsx to xls Happy Testing!!!

Error: chromedriver.exe returns Only local connections are allowed

    Error: chromedriver.exe returns   Only local connections are allowed Error: chromedriver.exe returns   Only local connections are allowed Solution: basically, this message represents chromedriver.exe and selenium version compatible issue Download the chromedriver.exe as per chrome browser you are using by following steps: ·          Find out which version of Chrome you are using. Let's say you have Chrome 72.0.3626.81. ·          Take the Chrome version number, remove the last part, and append the result to URL "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_". For example, with Chrome version 72.0.3626.81, you'd get a new URL "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_72.0.3626". ·          Use the URL created in the last step to retrieve a small file containing the version of ChromeDriver...