stealth_browser_automation 1.1.29 → 1.1.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/browserfactory.rb +7 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ea3ea8af9d8acf36078ea1c4e36de0da31c9d7a
4
- data.tar.gz: ea447f84f4a95edb17fa9d0e7554b783c1573bec
3
+ metadata.gz: 651806b3656292c2ab94d0d5881306f49ebd0e66
4
+ data.tar.gz: 70bafc7c768e14e127e76e0898f0103600507a52
5
5
  SHA512:
6
- metadata.gz: fc7a9c7af1b1df27f66916c39d64f306be73614410524561e0cd6f5857b04a2b31873a5cfee7d20f13284003b4b55d6694f762c3a6875324d446a56f27a18e1f
7
- data.tar.gz: 57eedf8a494080dd8eeacec2b60cb2b1729828a77a3551c805f978b734fb62cf3e4eddc71c94b1438cf06e3cae93fb983d14e46b8ed79cbcbc1ca2bb7e63f147
6
+ metadata.gz: e423e27ee1c42b626f471afe44d56a4c976b7f8ccf22ef7fe9a9a0f72545b08bd2e5a920df0c4b048606f40f87569897ddf67815791294f345f983bf34533143
7
+ data.tar.gz: f87e94c9d404a3f329614e5a293a17d88a00e88ab5dce020b3b3fa944d84ea84f9d9e78f76af987384ebd2001c754cab0ae18b0303be743ce0528528208d7f21
@@ -582,6 +582,7 @@ puts 'no'
582
582
  puts "error: #{e.to_s}"
583
583
  end
584
584
  =end
585
+ =begin
585
586
  begin
586
587
  # TODO: entender porque debo hacer esta llamada a start para que el perfil se cierre cuando ya estaba iniciado
587
588
  puts ''
@@ -600,14 +601,16 @@ puts 'no'
600
601
  rescue
601
602
  # nothing here
602
603
  end
603
- =begin
604
+ =end
605
+
604
606
  i = 0
605
607
  max = 3
606
608
  success = false
607
609
  while i<max && !success
608
610
  i+=1
609
- print "Api Call #{i.to_s}... "
610
- url = "http://127.0.0.1:#{BlackStack::StealthBrowserAutomation::Multilogin::mla_local_port}/api/v1/profile/stop?profileId=#{@@profile_name}"
611
+ url = "http://127.0.0.1:#{BlackStack::StealthBrowserAutomation::Multilogin::mla_local_port}/api/v1/profile/stop?profileId=#{@@profile_name}"
612
+ print "Api Call ##{i.to_s} to: #{url}... "
613
+ sleep(50000)
611
614
  uri = URI.parse(url)
612
615
  body = Net::HTTP.get(uri)
613
616
  res = JSON.parse(body)
@@ -615,7 +618,7 @@ print "Api Call #{i.to_s}... "
615
618
  puts "response: #{res['status'].to_s}"
616
619
  end # while i<max
617
620
  raise "Error requesting Mimic to stop (tried #{i.to_s} times)" if !success
618
- =end
621
+
619
622
  else
620
623
  raise 'Cannot destroy browser due unknown browser type'
621
624
  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.29
4
+ version: 1.1.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi