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.
- checksums.yaml +4 -4
- data/lib/browserfactory.rb +7 -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: 651806b3656292c2ab94d0d5881306f49ebd0e66
|
4
|
+
data.tar.gz: 70bafc7c768e14e127e76e0898f0103600507a52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e423e27ee1c42b626f471afe44d56a4c976b7f8ccf22ef7fe9a9a0f72545b08bd2e5a920df0c4b048606f40f87569897ddf67815791294f345f983bf34533143
|
7
|
+
data.tar.gz: f87e94c9d404a3f329614e5a293a17d88a00e88ab5dce020b3b3fa944d84ea84f9d9e78f76af987384ebd2001c754cab0ae18b0303be743ce0528528208d7f21
|
data/lib/browserfactory.rb
CHANGED
@@ -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
|
-
=
|
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
|
-
|
610
|
-
|
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
|
-
|
621
|
+
|
619
622
|
else
|
620
623
|
raise 'Cannot destroy browser due unknown browser type'
|
621
624
|
end
|