stealth_browser_automation 1.1.20 → 1.1.21
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 +6 -0
- 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: 98206842d280f91c4f006f89947334f93f3c0d4a
|
4
|
+
data.tar.gz: 94b8ad50fb05841ab40028a81cfdc94805ecd6d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5749c9f76fc2e89a50d0a5dd526f06af5b6aae89c18c264326cb78a509eed502bb594e6931f4294487bfd8937179ff93025c801afcef3933de9dcf6486cf8e2
|
7
|
+
data.tar.gz: 6789965897ab92d2aa576188a5fc1fd60d42c1086d83ffe13949d992419e396808e3ccd074df40e99d003c255e70cd5d562fd7b8d5681e2d915820cf0a7e0e94
|
data/lib/browserfactory.rb
CHANGED
@@ -654,6 +654,12 @@ module BlackStack
|
|
654
654
|
while (i<max && url_2.nil?)
|
655
655
|
i += 1
|
656
656
|
|
657
|
+
# cierro el perfil por si estaba corriendo
|
658
|
+
url = "http://127.0.0.1:#{BlackStack::StealthBrowserAutomation::Multilogin::mla_local_port}/api/v1/profile/stop?profileId=#{@@profile_name}"
|
659
|
+
uri = URI.parse(url)
|
660
|
+
body = Net::HTTP.get(uri)
|
661
|
+
res = JSON.parse(body)
|
662
|
+
|
657
663
|
url = "http://127.0.0.1:#{BlackStack::StealthBrowserAutomation::Multilogin::mla_local_port}/api/v1/profile/start?automation=true&profileId=#{@@profile_name}"
|
658
664
|
uri = URI.parse(url)
|
659
665
|
body = Net::HTTP.get(uri)
|