stealth_browser_automation 1.1.14 → 1.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/browserfactory.rb +12 -12
- 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: 00286f6d3b50ffb0711be6823fba844a7e2058a9
|
4
|
+
data.tar.gz: 9054fae3844772ed71b7e8a1b438785c366d6e47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ea645f15d68bbeacf6cd437849c1239e340073a1fae83b2f6baef7d38199244f1c9eb018ccdad193f541522a7015a4aeac3a879be270e86b5e647bd7d719433
|
7
|
+
data.tar.gz: 4b45e8ab0311a4a0e23cb83e2762c094d864380d1a0c3d98790620367762f8edd067e698748eada2b07586f3165d0b0b739d8dcd23f2683bdad1dd876fc7ff1c
|
data/lib/browserfactory.rb
CHANGED
@@ -542,13 +542,13 @@ module BlackStack
|
|
542
542
|
# Close the browser only if itIsMe? returns true.
|
543
543
|
# Set nil to @@browser, @@pid, @@profile_name, @@driver, @@type.
|
544
544
|
def self.destroy
|
545
|
-
if self.itIsMe?
|
545
|
+
#if self.itIsMe?
|
546
546
|
begin
|
547
547
|
# borro el contenido de PROFILE_LOCK_FILENAME
|
548
|
-
if !@@profile_name.nil?
|
549
|
-
|
550
|
-
|
551
|
-
end
|
548
|
+
#if !@@profile_name.nil?
|
549
|
+
# fname = PROFILE_LOCK_FILENAME.gsub('%PROFILE_NAME%', @@profile_name)
|
550
|
+
# File.open(fname,'w')
|
551
|
+
#end
|
552
552
|
|
553
553
|
#
|
554
554
|
if @@type == BlackStack::BrowserFactory::TYPE_CHROME
|
@@ -598,7 +598,7 @@ module BlackStack
|
|
598
598
|
self.release
|
599
599
|
raise e
|
600
600
|
end
|
601
|
-
end # if self.isItMe?
|
601
|
+
#end # if self.isItMe?
|
602
602
|
|
603
603
|
# reseteo las variables
|
604
604
|
@@browser = nil
|
@@ -637,9 +637,9 @@ module BlackStack
|
|
637
637
|
@@profile_name = mimic_profile_id
|
638
638
|
|
639
639
|
#
|
640
|
-
fname = PROFILE_LOCK_FILENAME.gsub('%PROFILE_NAME%', @@profile_name)
|
641
|
-
File.open(fname,'w') if !File.file?(fname)
|
642
|
-
|
640
|
+
#fname = PROFILE_LOCK_FILENAME.gsub('%PROFILE_NAME%', @@profile_name)
|
641
|
+
#File.open(fname,'w') if !File.file?(fname)
|
642
|
+
#@@fd_profile_lock = File.open(fname,'r+')
|
643
643
|
|
644
644
|
begin
|
645
645
|
# Levantar el flag de reserva a mi favor
|
@@ -736,9 +736,9 @@ module BlackStack
|
|
736
736
|
@@profile_name = profile_name
|
737
737
|
|
738
738
|
#
|
739
|
-
fname = PROFILE_LOCK_FILENAME.gsub('%PROFILE_NAME%', @@profile_name)
|
740
|
-
File.open(fname,'w') if !File.file?(fname)
|
741
|
-
|
739
|
+
#fname = PROFILE_LOCK_FILENAME.gsub('%PROFILE_NAME%', @@profile_name)
|
740
|
+
#File.open(fname,'w') if !File.file?(fname)
|
741
|
+
#@@fd_profile_lock = File.open(fname, 'r+')
|
742
742
|
|
743
743
|
#
|
744
744
|
agent = @@arAgents[0] if user_agent.nil?
|