stealth_browser_automation 1.1.33 → 1.1.34
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 +4 -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: 5660c0a8cfac17724f1aad4e21b85c7f0de2e543
|
4
|
+
data.tar.gz: 92d1a4ef326a140a89c3eee26cd99e8b7b9d0e2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fc9c6e5b0a50fdceee053b5e3fe9ebee2e5d6685fcf7af4a2cd047e84957d788540e71868bdb037e31c2f2c8a50cb0cd2a70fc869f18750fe19e730872b6e72
|
7
|
+
data.tar.gz: 654463e6de3e88b7c21c90663968a4cf10a46be96f9dc1d393b5ff7336da475bac14046cd599447bedc4004492f499cbccc8c38537ead21a8df2281281bf3478
|
data/lib/browserfactory.rb
CHANGED
@@ -605,18 +605,18 @@ puts 'no'
|
|
605
605
|
|
606
606
|
i = 0
|
607
607
|
max = 90
|
608
|
-
success = 0
|
608
|
+
success = 0 # I have to call this access point many times to get the browser closed.
|
609
609
|
max_success_required = 30
|
610
610
|
while i<max && success<max_success_required
|
611
|
-
puts ''
|
611
|
+
#puts ''
|
612
612
|
i+=1
|
613
613
|
url = "http://127.0.0.1:#{BlackStack::StealthBrowserAutomation::Multilogin::mla_local_port}/api/v1/profile/stop?profileId=#{@@profile_name}"
|
614
|
-
print "Api Call ##{i.to_s} to: #{url}... "
|
614
|
+
#print "Api Call ##{i.to_s} to: #{url}... "
|
615
615
|
uri = URI.parse(url)
|
616
616
|
body = Net::HTTP.get(uri)
|
617
617
|
res = JSON.parse(body)
|
618
618
|
success += 1 if res['status'].to_s == 'OK'
|
619
|
-
puts "response: #{res['status'].to_s}"
|
619
|
+
#puts "response: #{res['status'].to_s}"
|
620
620
|
end # while i<max && && success<max_success_required
|
621
621
|
raise "Error requesting Mimic to stop (tried #{i.to_s} times)" if success<max_success_required
|
622
622
|
|