stealth_browser_automation 1.1.9 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/browserfactory.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f1c5eacff96a5500251c9d32a3e2f134a95dee8
|
4
|
+
data.tar.gz: 5cbb8c3c7927976c5412ca107fd36415b5051efe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 278d46c0fb825ae4e9962bcdb9844eb6163dc7220568463dcafa8a8634824051e4d00da0370b7b4c2bfa10f68c4425080328da8ffe3739d5466108889cdb7f40
|
7
|
+
data.tar.gz: 75921e2782876f31d7bcf96bdeefcd24f530fe6530aa2a0740419ed8b3a71330aa2b61d55cc2bf9eed156e304cd5f62505abd82d027823bda7966d948979e5b7
|
data/lib/browserfactory.rb
CHANGED
@@ -338,13 +338,13 @@ module BlackStack
|
|
338
338
|
|
339
339
|
# Returns the list of supported browsers
|
340
340
|
def self.types
|
341
|
-
[BlackStack::BrowserFactory
|
341
|
+
[BlackStack::BrowserFactory::TYPE_CHROME, BlackStack::BrowserFactory::TYPE_MIMIC]
|
342
342
|
end
|
343
343
|
|
344
344
|
# Returns the description string from a browser type code
|
345
345
|
def self.typeDesc(type)
|
346
|
-
return 'Chrome' if @@type == BlackStack::BrowserFactory
|
347
|
-
return 'Mimic' if @@type == BlackStack::BrowserFactory
|
346
|
+
return 'Chrome' if @@type == BlackStack::BrowserFactory::TYPE_CHROME
|
347
|
+
return 'Mimic' if @@type == BlackStack::BrowserFactory::TYPE_MIMIC
|
348
348
|
raise 'Unknown browser type'
|
349
349
|
end
|
350
350
|
|
@@ -410,7 +410,7 @@ module BlackStack
|
|
410
410
|
# If the browser type is Chrome, this method will return true if the PROFILE_PID_LIST_FILENAME has one or more PIDs registered.
|
411
411
|
# For more information, read documentations about PROFILE_PID_LIST_FILENAME.
|
412
412
|
def self.isCreated
|
413
|
-
if @@type == BlackStack::BrowserFactory
|
413
|
+
if @@type == BlackStack::BrowserFactory::TYPE_CHROME
|
414
414
|
if (self.readPidToProfileList(@@profile_name).size>0)
|
415
415
|
return true
|
416
416
|
end
|