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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/browserfactory.rb +14 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d9cfbadc98d58e0115fa2b5e6dab39732a36a64
4
- data.tar.gz: 9047f3a14290b6a6d9bccf3aa491de7fc795f5d3
3
+ metadata.gz: ed89e0a607d7dc698215170b54a766da1c7a51ee
4
+ data.tar.gz: 26c154e280f2f0d3fcb4e69faf3664f561e32baf
5
5
  SHA512:
6
- metadata.gz: 1f9606883aeac31c85feccb1e6f8736bf46da9b815df6c6b6ea5edf65a8c39d5a975abb637c70c8f2a34080f39f072f1f01f72ca3631ce64e97bb5a2fe05627f
7
- data.tar.gz: 2b3c4bd13546da1afac003d5b2f4d382c9100cb80e922737821a55ca881f58fc6921d1860640a06b0275774a59387acd28d0ffeea9bb0b2183a2bfe3b1318af8
6
+ metadata.gz: b68e5412c006a0282b7216e9629068d3bcb884f764419652c1e2622fe7c17497db19a4324fc647fe9d7891b1e6255ae42ed1c5fd8c665cd4fdca7bea60f6a695
7
+ data.tar.gz: f18e7cb71be0b2b2abe89963951982ac7fa76523c5f812e5e093b5a43a40568848bf0f639a00c01a4db9fee07d201b277deab472c0462d13e9301b1e2cbb711d
@@ -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
- =begin
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
- BlackStack::BrowserFactory.mimic(@@profile_name) if !@@profile_name.nil?
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
- =end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stealth_browser_automation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.26
4
+ version: 1.1.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi