[c164f8f] | 1 | import com.fasterxml.jackson.databind.JsonNode;
|
---|
| 2 | import com.fasterxml.jackson.databind.ObjectMapper;
|
---|
| 3 | import org.openqa.selenium.By;
|
---|
[d4d8f61] | 4 | import org.openqa.selenium.WebDriver;
|
---|
[c164f8f] | 5 | import org.openqa.selenium.WebElement;
|
---|
[d4d8f61] | 6 | import org.openqa.selenium.chrome.ChromeDriver;
|
---|
| 7 | import org.openqa.selenium.chrome.ChromeOptions;
|
---|
| 8 | import org.jsoup.Jsoup;
|
---|
| 9 | import org.jsoup.nodes.Document;
|
---|
| 10 | import org.jsoup.nodes.Element;
|
---|
| 11 | import org.jsoup.select.Elements;
|
---|
[c164f8f] | 12 | import org.openqa.selenium.support.ui.ExpectedCondition;
|
---|
| 13 | import org.openqa.selenium.support.ui.ExpectedConditions;
|
---|
| 14 | import org.openqa.selenium.support.ui.WebDriverWait;
|
---|
[d4d8f61] | 15 |
|
---|
[0a7426e] | 16 | import javax.xml.crypto.Data;
|
---|
[c164f8f] | 17 | import java.io.File;
|
---|
| 18 | import java.io.IOException;
|
---|
| 19 | import java.sql.Connection;
|
---|
| 20 | import java.sql.DriverManager;
|
---|
| 21 | import java.sql.PreparedStatement;
|
---|
| 22 | import java.sql.SQLException;
|
---|
| 23 | import java.text.ParseException;
|
---|
| 24 | import java.text.SimpleDateFormat;
|
---|
| 25 | import java.util.*;
|
---|
[d4d8f61] | 26 | import java.util.concurrent.ConcurrentLinkedQueue;
|
---|
| 27 | import java.util.concurrent.CountDownLatch;
|
---|
| 28 |
|
---|
| 29 | public class ScraperThread extends Thread {
|
---|
| 30 | private String url;
|
---|
| 31 | private ConcurrentLinkedQueue<Option> uniqueOptions;
|
---|
| 32 | private CountDownLatch latch;
|
---|
[c164f8f] | 33 | private Set<Option> optionSet;
|
---|
[d4d8f61] | 34 |
|
---|
[c164f8f] | 35 | public ScraperThread(String url, ConcurrentLinkedQueue<Option> optionsQueue, CountDownLatch latch) {
|
---|
[d4d8f61] | 36 | this.url = url;
|
---|
| 37 | this.uniqueOptions = optionsQueue;
|
---|
| 38 | this.latch = latch;
|
---|
[c164f8f] | 39 | this.optionSet = new HashSet<>();
|
---|
[d4d8f61] | 40 | }
|
---|
| 41 |
|
---|
[1c51912] | 42 | public WebDriver driver;
|
---|
[c164f8f] | 43 |
|
---|
| 44 | private void initializeWebDriver() {
|
---|
| 45 | System.setProperty("webdriver.chrome.driver", "C:\\chromedriver-win64\\chromedriver.exe");
|
---|
[d4d8f61] | 46 | ChromeOptions options = new ChromeOptions();
|
---|
[c164f8f] | 47 | options.setBinary("C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe");
|
---|
| 48 | options.addArguments("--headless");
|
---|
[d4d8f61] | 49 | options.addArguments("--disable-gpu");
|
---|
[c164f8f] | 50 | options.addArguments("--remote-allow-origins=*");
|
---|
| 51 | options.addArguments("user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36");
|
---|
| 52 | driver = new ChromeDriver(options);
|
---|
| 53 | }
|
---|
| 54 |
|
---|
| 55 | private void closeWebDriver() {
|
---|
| 56 | if (driver != null) {
|
---|
| 57 | driver.quit();
|
---|
| 58 | }
|
---|
| 59 | }
|
---|
| 60 |
|
---|
[53bad7e] | 61 | private void connectToWeb(String queryUrl, int numPeople) {
|
---|
[c164f8f] | 62 | driver.get(queryUrl);
|
---|
| 63 |
|
---|
| 64 | WebDriverWait wait = new WebDriverWait(driver, 40); // 40s timeout buffer
|
---|
| 65 | switch (url) {
|
---|
| 66 | case "https://booking.escapetravel.mk/":
|
---|
| 67 | wait.until(ExpectedConditions.presenceOfElementLocated(By.cssSelector("#hotels-container")));
|
---|
[53bad7e] | 68 | try { Thread.sleep(10000);} catch (InterruptedException e) { e.printStackTrace(); }//price fetch
|
---|
[c164f8f] | 69 | break;
|
---|
| 70 | case "https://magelantravel.mk/":
|
---|
| 71 | wait.until(ExpectedConditions.presenceOfElementLocated(By.cssSelector("div.sodrzina")));
|
---|
| 72 | break;
|
---|
| 73 | }
|
---|
| 74 |
|
---|
| 75 | String pageSource = driver.getPageSource();
|
---|
| 76 | System.out.println("Connected to " + queryUrl);
|
---|
| 77 | Document doc = Jsoup.parse(pageSource);
|
---|
| 78 | Element parentDiv;
|
---|
| 79 | Elements childDivs;
|
---|
| 80 |
|
---|
| 81 | switch (url) {
|
---|
| 82 | case "https://booking.escapetravel.mk/":
|
---|
| 83 | parentDiv = doc.selectFirst("#hotels-container");
|
---|
| 84 | if (parentDiv != null) {
|
---|
| 85 | childDivs = parentDiv.select("a.hotel-item");
|
---|
| 86 | for (Element div : childDivs) {
|
---|
| 87 | String data = div.outerHtml();
|
---|
[53bad7e] | 88 | Option option = optionParser(data,numPeople);
|
---|
[c164f8f] | 89 | if (option != null) {
|
---|
| 90 | Option existingOption = DatabaseUtil.findOption(option);
|
---|
| 91 | if (existingOption != null) {
|
---|
[1c51912] | 92 | if (existingOption.equals(option)) {
|
---|
[c164f8f] | 93 | option.setPriceChanged(true);
|
---|
| 94 | option.setNewPrice(option.getPrice());
|
---|
[d4d8f61] | 95 | }
|
---|
[c164f8f] | 96 | DatabaseUtil.updateOptionInDatabase(option);
|
---|
| 97 | } else if (optionSet.add(option)) {
|
---|
| 98 | uniqueOptions.add(option);
|
---|
[cd64b06] | 99 | option.setId(DatabaseUtil.saveOptionToDatabase(option));
|
---|
| 100 | scrapeOptionInfo(option);
|
---|
[c164f8f] | 101 | System.out.println("Parsed " + option);
|
---|
[d4d8f61] | 102 | }
|
---|
| 103 | }
|
---|
| 104 | }
|
---|
[c164f8f] | 105 | } else {
|
---|
| 106 | System.out.println("Parent div not found");
|
---|
| 107 | }
|
---|
| 108 | break;
|
---|
| 109 | case "https://magelantravel.mk/":
|
---|
| 110 | parentDiv = doc.selectFirst("div.sodrzina");
|
---|
| 111 | if (parentDiv != null) {
|
---|
| 112 | childDivs = parentDiv.select("div.destinacija");
|
---|
| 113 | childDivs.removeIf(div -> div.attr("style").contains("display:none") || div.attr("style").contains("display: none"));
|
---|
| 114 | System.out.println("Filtered childDivs size: " + childDivs.size());
|
---|
| 115 | for (Element div : childDivs) {
|
---|
| 116 | String data = div.outerHtml();
|
---|
[53bad7e] | 117 | Option newOption = optionParser(data,numPeople);
|
---|
[c164f8f] | 118 | if (newOption != null) {
|
---|
[1c51912] | 119 | if (optionSet.add(newOption)) {
|
---|
[c164f8f] | 120 | uniqueOptions.add(newOption);
|
---|
[1c51912] | 121 |
|
---|
| 122 | newOption.setId(DatabaseUtil.saveOptionToDatabase(newOption));
|
---|
| 123 | scrapeOptionInfo(newOption);
|
---|
[c164f8f] | 124 | System.out.println("Parsed " + newOption);
|
---|
[d4d8f61] | 125 | }
|
---|
| 126 | }
|
---|
| 127 | }
|
---|
[c164f8f] | 128 |
|
---|
| 129 | } else {
|
---|
| 130 | System.out.println("Parent div not found");
|
---|
| 131 | }
|
---|
| 132 | break;
|
---|
| 133 | default:
|
---|
| 134 | System.out.println("URL not recognized for parsing.");
|
---|
[d4d8f61] | 135 | }
|
---|
| 136 | }
|
---|
[1c51912] | 137 | private void scrapeOptionInfo(Option option) {
|
---|
| 138 | String url = option.getLink();
|
---|
| 139 | if(url.contains("magelantravel.mk")) {
|
---|
| 140 | System.out.println("Scraping info for " + option.getHotelName());
|
---|
| 141 | String[] dates = option.getDateRange().split(" - ");
|
---|
| 142 | url += "&checkin=" + dates[0] + "&checkout=" + dates[1] + "&adult=" + option.getNumPeople();
|
---|
[d4d8f61] | 143 |
|
---|
[1c51912] | 144 | driver.get(url);
|
---|
| 145 | try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } //data fetch
|
---|
| 146 | String pageSource = driver.getPageSource();
|
---|
| 147 | Document doc = Jsoup.parse(pageSource);
|
---|
| 148 | Elements roomOptions = doc.select(".tblroom > tbody > tr");
|
---|
| 149 | for (Element roomOption : roomOptions) {
|
---|
| 150 | String type = roomOption.select("a.tblroom-type").text();
|
---|
[c164f8f] | 151 |
|
---|
[1c51912] | 152 | String board = roomOption.select(".rezervacija-objekt").text();
|
---|
[cd64b06] | 153 | if(board.length() > 2) {
|
---|
| 154 | board = board.substring(0, 2);
|
---|
[1c51912] | 155 | }
|
---|
[cd64b06] | 156 | if(board.isEmpty() || type.isEmpty()) continue;
|
---|
| 157 |
|
---|
[1c51912] | 158 | Elements amenityElement = roomOption.select(".objekt-opis");
|
---|
| 159 | String amenity = (amenityElement != null ? amenityElement.text() : "");
|
---|
| 160 | System.out.println(amenity + " " + board + " " + type );
|
---|
| 161 | String priceText = roomOption.select(".tbl-cena").text().replace("€", "").trim();
|
---|
| 162 | float price;
|
---|
| 163 | if (!priceText.isEmpty()) {
|
---|
| 164 | price = Float.parseFloat(priceText);
|
---|
| 165 | }else continue;
|
---|
[c164f8f] | 166 |
|
---|
[0a7426e] | 167 | //Check for changes
|
---|
| 168 | int odId = checkForChanges(option.getId(), type, board,amenity,price);
|
---|
| 169 | if(odId != 0) { //true = changes found - update details
|
---|
| 170 | DatabaseUtil.updateOptionDetails(odId,type,board,amenity,price);
|
---|
| 171 | }else{ //false = not found / no changes - save regular
|
---|
| 172 | DatabaseUtil.saveOptionDetails(option.getId(), type, board, amenity, price);
|
---|
| 173 | }
|
---|
[1c51912] | 174 | }
|
---|
| 175 | }
|
---|
[cd64b06] | 176 | else if(url.contains("booking.escapetravel.mk")){
|
---|
| 177 | System.out.println("Scraping info for " + url);
|
---|
| 178 |
|
---|
| 179 | driver.get(url);
|
---|
| 180 | try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } //data fetch
|
---|
| 181 | String pageSource = driver.getPageSource();
|
---|
| 182 | Document doc = Jsoup.parse(pageSource);
|
---|
| 183 | Elements roomOptions = doc.select("#hotel-rooms-container .hotel-room-row");
|
---|
| 184 | for(Element roomOption : roomOptions){
|
---|
| 185 | String type = roomOption.select("td.align-middle").first().text();
|
---|
| 186 | String board = roomOption.select("td.align-middle.text-primary.lead").text();
|
---|
| 187 | if (board.isEmpty() || type.isEmpty()) continue;
|
---|
| 188 | String priceText = roomOption.select("td.align-middle.text-end .text-success.d-block.lead").text().replace("€", "").trim();
|
---|
| 189 | float price;
|
---|
| 190 | if (!priceText.isEmpty()) {
|
---|
| 191 | price = Float.parseFloat(priceText.replace(",", ""));
|
---|
| 192 | } else continue;
|
---|
| 193 |
|
---|
| 194 | Elements amenityElements = doc.select("div.row > div.col-6.col-md-3.col-xl-2");
|
---|
| 195 | StringBuilder amenities = new StringBuilder();
|
---|
| 196 | for (Element amenityElement : amenityElements) {
|
---|
| 197 | amenities.append(amenityElement.text()).append(", ");
|
---|
| 198 | }
|
---|
| 199 | if (!amenities.isEmpty()) {
|
---|
| 200 | amenities.setLength(amenities.length() - 2);
|
---|
| 201 | }
|
---|
| 202 | System.out.println(type + board + price + amenities);
|
---|
[0a7426e] | 203 | int odId = checkForChanges(option.getId(), type, board,amenities.toString(),price);
|
---|
| 204 | if(odId != 0) { //true = changes found - update details
|
---|
| 205 | DatabaseUtil.updateOptionDetails(odId,type,board,amenities.toString(),price);
|
---|
| 206 | }else{ //false = not found / no changes - save regular
|
---|
| 207 | DatabaseUtil.saveOptionDetails(option.getId(), type, board, amenities.toString(), price);
|
---|
| 208 | }
|
---|
[cd64b06] | 209 | }
|
---|
| 210 |
|
---|
| 211 | }
|
---|
[1c51912] | 212 | }
|
---|
[0a7426e] | 213 | private int checkForChanges(int id, String type, String board, String amenities, float price){ //return true for changes, false for no changes
|
---|
| 214 | try {
|
---|
| 215 | List<Option> pooled = DatabaseUtil.poolOptionDetails(id);
|
---|
| 216 | if (pooled.isEmpty()) { //not saved = no changes - save regular
|
---|
| 217 | return 0;
|
---|
| 218 | }else{ //got the options saved details
|
---|
| 219 | for(Option o : pooled){
|
---|
| 220 | if(o.getType().equals(type) && o.getBoard().equals(board)){//for the room and board check amenity and price changes (Assumption type of room and board do not change)
|
---|
| 221 | if((!o.getAmenities().equals(amenities)) || o.getPrice() != price){
|
---|
| 222 | return o.getDetail_id(); //Change
|
---|
| 223 | }
|
---|
| 224 | }
|
---|
| 225 | }
|
---|
| 226 | }
|
---|
| 227 | }catch(SQLException e){
|
---|
| 228 | e.printStackTrace();
|
---|
| 229 | }
|
---|
| 230 | return 0; //no changes detected
|
---|
| 231 | }
|
---|
[1c51912] | 232 | private Option optionParser(String data, int numPeople){
|
---|
[d4d8f61] | 233 | Document doc = Jsoup.parse(data);
|
---|
| 234 | Option created = new Option();
|
---|
| 235 | switch (url) {
|
---|
[c164f8f] | 236 | case "https://magelantravel.mk/":
|
---|
| 237 | created = parseMagelan(doc);
|
---|
[53bad7e] | 238 | created.setNumPeople(numPeople);
|
---|
[d4d8f61] | 239 | break;
|
---|
| 240 | case "https://booking.escapetravel.mk/":
|
---|
| 241 | created = parseEscapeTravel(doc);
|
---|
[53bad7e] | 242 | created.setNumPeople(numPeople);
|
---|
[d4d8f61] | 243 | break;
|
---|
| 244 | default:
|
---|
| 245 | System.out.println("URL not recognized for parsing.");
|
---|
| 246 | break;
|
---|
| 247 | }
|
---|
| 248 | if (created.isEmpty()) {
|
---|
| 249 | return null;
|
---|
| 250 | }
|
---|
| 251 | return created;
|
---|
| 252 | }
|
---|
| 253 |
|
---|
[c164f8f] | 254 | private Option parseMagelan(Document doc) {
|
---|
[d4d8f61] | 255 | Option created = new Option();
|
---|
[c164f8f] | 256 | Element linkElement = doc.selectFirst("div.ponuda-sredina");
|
---|
| 257 | int id = Integer.parseInt(linkElement.attr("data-id"));
|
---|
| 258 | int turop = Integer.parseInt(linkElement.attr("data-turop"));
|
---|
| 259 | created.setLink("https://magelantravel.mk/ponudi.php?type=1&objektid=" + id + "&turop=" + turop);
|
---|
| 260 | Element imgElement = doc.selectFirst("div.imgLiquidFill.imgLiquid.ponuda-img.zoom");
|
---|
| 261 | created.setImgSrc(imgElement != null ? url + imgElement.attr("style")
|
---|
| 262 | .split("url\\(")[1].split("\\)")[0].replace("'", "").replace("./", "/") : null);
|
---|
| 263 | Element hotelNameElement = doc.selectFirst("div.ponuda-objekt");
|
---|
[d4d8f61] | 264 | created.setHotelName(hotelNameElement != null ? hotelNameElement.text() : null);
|
---|
[c164f8f] | 265 | Element countryElement = doc.selectFirst("l.ponuda-lokacija");
|
---|
[d4d8f61] | 266 | created.setCountry(countryElement != null ? countryElement.text() : null);
|
---|
[c164f8f] | 267 | Element dateElement = doc.selectFirst("l.ponuda-opis.termin");
|
---|
| 268 | created.setDateRange(dateElement != null ? dateElement.text() : null);
|
---|
[d4d8f61] | 269 | return created;
|
---|
| 270 | }
|
---|
| 271 | private Option parseEscapeTravel(Document doc) {
|
---|
| 272 | Option created = new Option();
|
---|
[c164f8f] | 273 | Element card = doc.selectFirst("a.hotel-item");
|
---|
| 274 | String link = card.attr("href");
|
---|
| 275 | created.setLink(link);
|
---|
| 276 | created.setImgSrc(card.attr("data-picture"));
|
---|
| 277 | created.setHotelName(card.attr("data-title"));
|
---|
| 278 | Element countryP = doc.selectFirst("p.text-info");
|
---|
[53bad7e] | 279 | String country = countryP.text().replaceAll("leto hoteli", "");
|
---|
| 280 | created.setCountry(country);
|
---|
[c164f8f] | 281 | String[] queryParams = link.split("[?&]");
|
---|
| 282 | String startDateStr = null;
|
---|
| 283 | int nights = 0;
|
---|
| 284 | for (String param : queryParams) {
|
---|
| 285 | if (param.startsWith("Date=")) {
|
---|
| 286 | startDateStr = param.split("=")[1];
|
---|
| 287 | }
|
---|
| 288 | if (param.startsWith("Nights=")) {
|
---|
| 289 | nights = Integer.parseInt(param.split("=")[1]);
|
---|
| 290 | }
|
---|
| 291 | }
|
---|
| 292 | if (startDateStr != null && nights > 0)
|
---|
| 293 | {
|
---|
| 294 | SimpleDateFormat dateFormat = new SimpleDateFormat("dd.MM.yyyy");
|
---|
| 295 | try {
|
---|
| 296 | Date startDate = dateFormat.parse(startDateStr);
|
---|
[d4d8f61] | 297 |
|
---|
[c164f8f] | 298 | Calendar calendar = Calendar.getInstance();
|
---|
| 299 | calendar.setTime(startDate);
|
---|
| 300 | calendar.add(Calendar.DAY_OF_YEAR, nights);
|
---|
| 301 | Date endDate = calendar.getTime();
|
---|
| 302 | String dateRange = dateFormat.format(startDate) + " - " + dateFormat.format(endDate);
|
---|
| 303 | created.setDateRange(dateRange);
|
---|
| 304 | }catch (ParseException e){
|
---|
| 305 | e.printStackTrace();
|
---|
| 306 | }
|
---|
| 307 | }
|
---|
[d4d8f61] | 308 | return created;
|
---|
| 309 | }
|
---|
| 310 |
|
---|
| 311 | @Override
|
---|
[c164f8f] | 312 | public void run() {
|
---|
| 313 | System.out.println("Thread started for url: " + url);
|
---|
| 314 | initializeWebDriver();
|
---|
| 315 | if ("https://magelantravel.mk/".equals(url)) {
|
---|
| 316 | ObjectMapper mapper = new ObjectMapper();
|
---|
| 317 | try {
|
---|
| 318 | ClassLoader classLoader = getClass().getClassLoader();
|
---|
| 319 | JsonNode root = mapper.readTree(new File(classLoader.getResource("CountriesList.json").getFile()));
|
---|
| 320 | JsonNode countries = root.get("countries");
|
---|
| 321 | SimpleDateFormat dateFormat = new SimpleDateFormat("dd.MM.yyyy");
|
---|
| 322 | Calendar calendar = Calendar.getInstance();
|
---|
| 323 | calendar.add(Calendar.DAY_OF_YEAR, 1);
|
---|
| 324 |
|
---|
| 325 | for (int i = 0; i < 90; i++) { // next three months
|
---|
| 326 | String date = dateFormat.format(calendar.getTime());
|
---|
| 327 | for (JsonNode countryNode : countries) {
|
---|
| 328 | String country = countryNode.asText();
|
---|
| 329 | for (int nokevanja = 2; nokevanja <= 10; nokevanja++) {
|
---|
[53bad7e] | 330 | for(int lugje = 1; lugje <= 4; lugje++) {
|
---|
| 331 | String queryUrl = url + "/destinacii?ah_tip=1&iframe=&affiliate_code=&carter_id=0&carter_region=&carter_dataod=&carter_datado=&destinacija=" + country + "&oddatum=" + date + "&nokevanja=" + nokevanja + "&dodatum=&broj_vozrasni=" + lugje + "&broj_deca=0&spdete1=0&spdete2=0&spdete3=0&spdete4=0";
|
---|
| 332 | connectToWeb(queryUrl,lugje);
|
---|
| 333 | }
|
---|
[c164f8f] | 334 | }
|
---|
| 335 | }
|
---|
| 336 | calendar.add(Calendar.DAY_OF_YEAR, 1); // next day
|
---|
| 337 | }
|
---|
| 338 |
|
---|
| 339 | } catch (IOException e) {
|
---|
| 340 | e.printStackTrace();
|
---|
| 341 | }
|
---|
| 342 | } else if ("https://booking.escapetravel.mk/".equals(url)) {
|
---|
| 343 | ObjectMapper mapper = new ObjectMapper();
|
---|
| 344 | try {
|
---|
| 345 | ClassLoader classLoader = getClass().getClassLoader();
|
---|
| 346 | JsonNode root = mapper.readTree(new File(classLoader.getResource("CountriesList.json").getFile()));
|
---|
[53bad7e] | 347 | JsonNode countries = root.get("countries");
|
---|
[c164f8f] | 348 | SimpleDateFormat dateFormat = new SimpleDateFormat("dd.MM.yyyy");
|
---|
| 349 | Calendar calendar = Calendar.getInstance();
|
---|
| 350 | calendar.add(Calendar.DAY_OF_YEAR, 1);
|
---|
| 351 |
|
---|
| 352 | for (int i = 0; i < 90; i++) { // next three months
|
---|
| 353 | String date = dateFormat.format(calendar.getTime());
|
---|
| 354 | for (JsonNode countryNode : countries) {
|
---|
| 355 | String country = countryNode.asText();
|
---|
| 356 | for(int nokevanja = 2; nokevanja <=10; nokevanja ++) {
|
---|
[53bad7e] | 357 | for(int lugje = 1; lugje <= 4; lugje++) {
|
---|
| 358 | String queryUrl = url + "/hotels?Search=" + country + "&Date=" + date + "&Nights=" + nokevanja + "&Rooms=1&Adults=" + lugje;
|
---|
| 359 | connectToWeb(queryUrl,lugje);
|
---|
| 360 | }
|
---|
[c164f8f] | 361 | }
|
---|
[d4d8f61] | 362 | }
|
---|
[c164f8f] | 363 | calendar.add(Calendar.DAY_OF_YEAR, 1); // next day
|
---|
| 364 | }
|
---|
| 365 | } catch (IOException e) {
|
---|
| 366 | e.printStackTrace();
|
---|
[d4d8f61] | 367 | }
|
---|
[c164f8f] | 368 | } else {
|
---|
| 369 | // Handle other URLs
|
---|
[d4d8f61] | 370 | }
|
---|
[c164f8f] | 371 | closeWebDriver();
|
---|
| 372 | latch.countDown();
|
---|
[d4d8f61] | 373 | }
|
---|
[c164f8f] | 374 |
|
---|
| 375 | }
|
---|