// Path: alldep-jar/src/main/java/com/gatf/selenium/SeleniumTest.java
// public static class SeleniumTestResult implements Serializable {
// 	private static final long serialVersionUID = 1L;
// 
// 	private Map<String, SerializableLogEntries> logs = new HashMap<String, SerializableLogEntries>();;
// 
// 	private boolean status;
// 
// 	long executionTime;
// 
// 	private Map<String, Object[]> internalTestRes = new HashMap<String, Object[]>();
// 
// 	public Map<String,SerializableLogEntries> getLogs()
// 	{
// 		return logs;
// 	}
// 	public boolean isStatus()
// 	{
// 		return status;
// 	}
// 	public long getExecutionTime()
// 	{
// 		return executionTime;
// 	}
// 	public Map<String,Object[]> getInternalTestRes()
// 	{
// 		return internalTestRes;
// 	}
// 	public SeleniumTestResult(WebDriver d, SeleniumTest test, LoggingPreferences ___lp___)
// 	{
// 		this.status = true;
// 		this.internalTestRes = test.getSession().internalTestRs;
// 		/*Logs logs = d.manage().logs();
//            for (String s : LOG_TYPES_SET) {
//                if(!logs.getAvailableLogTypes().contains(s))continue;
//                LogEntries logEntries = logs.get(s);
//                if(logEntries!=null && !logEntries.getAll().isEmpty()) {
//                    this.logs.put(s, new SerializableLogEntries(logEntries.getAll())); 
//                }
//            }*/
// 	}
// 	public SeleniumTestResult(WebDriver d, SeleniumTest test, Throwable cause, LoggingPreferences ___lp___) {
// 		this.status = false;
// 		this.internalTestRes = test.getSession().internalTestRs;
// 		/*Logs logs = d.manage().logs();
//            for (String s : LOG_TYPES_SET) {
//                if(!logs.getAvailableLogTypes().contains(s))continue;
//                LogEntries logEntries = logs.get(s);
//                if(logEntries!=null && !logEntries.getAll().isEmpty()) {
//                    this.logs.put(s, new SerializableLogEntries(logEntries.getAll())); 
//                }
//            }*/
// 		List<LogEntry> entries = new ArrayList<LogEntry>();
// 		entries.add(new LogEntry(Level.ALL, new Date().getTime(), cause.getMessage()));
// 		entries.add(new LogEntry(Level.ALL, new Date().getTime(), ExceptionUtils.getStackTrace(cause)));
// 		this.logs.put("gatf", new SerializableLogEntries(entries));
// 	}
// 	public SeleniumTestResult(SeleniumTest test, Throwable cause) {
// 		this.status = false;
// 		this.internalTestRes = test.getSession().internalTestRs;
// 		List<LogEntry> entries = new ArrayList<LogEntry>();
// 		entries.add(new LogEntry(Level.ALL, new Date().getTime(), cause.getMessage()));
// 		entries.add(new LogEntry(Level.ALL, new Date().getTime(), ExceptionUtils.getStackTrace(cause)));
// 		this.logs.put("gatf", new SerializableLogEntries(entries));
// 	}
// }


import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.logging.LogEntries;
import org.openqa.selenium.logging.LogEntry;
import org.openqa.selenium.logging.Logs;
import com.gatf.selenium.SeleniumTest.SeleniumTestResult;

/*
    Copyright 2013-2019, Sumeet Chhetri
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
    http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/
package com.gatf.selenium;




public class SeleniumException extends RuntimeException {
	
    private static final long serialVersionUID = 1L;
    

// Path: alldep-jar/src/main/java/com/gatf/selenium/SeleniumTest.java
// public static class SeleniumTestResult implements Serializable {
// 	private static final long serialVersionUID = 1L;
// 
// 	private Map<String, SerializableLogEntries> logs = new HashMap<String, SerializableLogEntries>();;
// 
// 	private boolean status;
// 
// 	long executionTime;
// 
// 	private Map<String, Object[]> internalTestRes = new HashMap<String, Object[]>();
// 
// 	public Map<String,SerializableLogEntries> getLogs()
// 	{
// 		return logs;
// 	}
// 	public boolean isStatus()
// 	{
// 		return status;
// 	}
// 	public long getExecutionTime()
// 	{
// 		return executionTime;
// 	}
// 	public Map<String,Object[]> getInternalTestRes()
// 	{
// 		return internalTestRes;
// 	}
// 	public SeleniumTestResult(WebDriver d, SeleniumTest test, LoggingPreferences ___lp___)
// 	{
// 		this.status = true;
// 		this.internalTestRes = test.getSession().internalTestRs;
// 		/*Logs logs = d.manage().logs();
//            for (String s : LOG_TYPES_SET) {
//                if(!logs.getAvailableLogTypes().contains(s))continue;
//                LogEntries logEntries = logs.get(s);
//                if(logEntries!=null && !logEntries.getAll().isEmpty()) {
//                    this.logs.put(s, new SerializableLogEntries(logEntries.getAll())); 
//                }
//            }*/
// 	}
// 	public SeleniumTestResult(WebDriver d, SeleniumTest test, Throwable cause, LoggingPreferences ___lp___) {
// 		this.status = false;
// 		this.internalTestRes = test.getSession().internalTestRs;
// 		/*Logs logs = d.manage().logs();
//            for (String s : LOG_TYPES_SET) {
//                if(!logs.getAvailableLogTypes().contains(s))continue;
//                LogEntries logEntries = logs.get(s);
//                if(logEntries!=null && !logEntries.getAll().isEmpty()) {
//                    this.logs.put(s, new SerializableLogEntries(logEntries.getAll())); 
//                }
//            }*/
// 		List<LogEntry> entries = new ArrayList<LogEntry>();
// 		entries.add(new LogEntry(Level.ALL, new Date().getTime(), cause.getMessage()));
// 		entries.add(new LogEntry(Level.ALL, new Date().getTime(), ExceptionUtils.getStackTrace(cause)));
// 		this.logs.put("gatf", new SerializableLogEntries(entries));
// 	}
// 	public SeleniumTestResult(SeleniumTest test, Throwable cause) {
// 		this.status = false;
// 		this.internalTestRes = test.getSession().internalTestRs;
// 		List<LogEntry> entries = new ArrayList<LogEntry>();
// 		entries.add(new LogEntry(Level.ALL, new Date().getTime(), cause.getMessage()));
// 		entries.add(new LogEntry(Level.ALL, new Date().getTime(), ExceptionUtils.getStackTrace(cause)));
// 		this.logs.put("gatf", new SerializableLogEntries(entries));
// 	}
// }


// Path: alldep-jar/src/main/java/com/gatf/selenium/SeleniumException.java
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.logging.LogEntries;
import org.openqa.selenium.logging.LogEntry;
import org.openqa.selenium.logging.Logs;
import com.gatf.selenium.SeleniumTest.SeleniumTestResult;

/*
    Copyright 2013-2019, Sumeet Chhetri
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
    http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/
package com.gatf.selenium;




public class SeleniumException extends RuntimeException {
	
    private static final long serialVersionUID = 1L;
    

    private SeleniumTestResult res;
