stealth_browser_automation 1.1.26 → 1.1.27
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 +14 -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: ed89e0a607d7dc698215170b54a766da1c7a51ee
|
4
|
+
data.tar.gz: 26c154e280f2f0d3fcb4e69faf3664f561e32baf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b68e5412c006a0282b7216e9629068d3bcb884f764419652c1e2622fe7c17497db19a4324fc647fe9d7891b1e6255ae42ed1c5fd8c665cd4fdca7bea60f6a695
|
7
|
+
data.tar.gz: f18e7cb71be0b2b2abe89963951982ac7fa76523c5f812e5e093b5a43a40568848bf0f639a00c01a4db9fee07d201b277deab472c0462d13e9301b1e2cbb711d
|
data/lib/browserfactory.rb
CHANGED
@@ -566,6 +566,7 @@ module BlackStack
|
|
566
566
|
end
|
567
567
|
|
568
568
|
elsif @@type == BlackStack::BrowserFactory::TYPE_MIMIC
|
569
|
+
=begin
|
569
570
|
puts ''
|
570
571
|
begin
|
571
572
|
print 'Close browser?... '
|
@@ -580,14 +581,23 @@ puts 'no'
|
|
580
581
|
rescue => e
|
581
582
|
puts "error: #{e.to_s}"
|
582
583
|
end
|
583
|
-
=
|
584
|
+
=end
|
584
585
|
begin
|
585
586
|
# TODO: entender porque debo hacer esta llamada a start para que el perfil se cierre cuando ya estaba iniciado
|
586
|
-
|
587
|
+
puts ''
|
588
|
+
print 'Close browser?... '
|
589
|
+
if !@@profile_name.nil?
|
590
|
+
puts 'yes'
|
591
|
+
print 'Close browser... '
|
592
|
+
BlackStack::BrowserFactory.mimic(@@profile_name)
|
593
|
+
puts 'done'
|
594
|
+
else
|
595
|
+
puts 'no'
|
596
|
+
end
|
587
597
|
rescue
|
588
598
|
# nothing here
|
589
599
|
end
|
590
|
-
=
|
600
|
+
=begin
|
591
601
|
i = 0
|
592
602
|
max = 3
|
593
603
|
success = false
|
@@ -602,7 +612,7 @@ print "Api Call #{i.to_s}... "
|
|
602
612
|
puts "response: #{res['status'].to_s}"
|
603
613
|
end # while i<max
|
604
614
|
raise "Error requesting Mimic to stop (tried #{i.to_s} times)" if !success
|
605
|
-
|
615
|
+
=end
|
606
616
|
else
|
607
617
|
raise 'Cannot destroy browser due unknown browser type'
|
608
618
|
end
|