adops_report_scrapper 0.2.20 → 0.2.21
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d537923a45df90cbac619437c713036c1346694f
|
4
|
+
data.tar.gz: 321edb47fe694a55ed67fa8cea9f871ad9de8721
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f32f5d409fa1eca2fb95f6ac7c8981e75b925d1754e65deb4642564fe6e077cf1d1a800bfbfa605d5d9515645b6d10e915f78d918a3f12490aee7bdb72ee2af
|
7
|
+
data.tar.gz: 094edf3648718c6d86dee8441fb2c2e02b47d2f81d274b3722931739a35ddb5b04a4b37aa526c4fa7ec49ca3a01c39c507fca4b7eab2e8aa7d4d12fd0d293dbd
|
@@ -33,7 +33,11 @@ class AdopsReportScrapper::AdsparcClient < AdopsReportScrapper::BaseClient
|
|
33
33
|
@client.visit url
|
34
34
|
sleep 5
|
35
35
|
@client.find(:css, '#topCalendar').click
|
36
|
-
|
36
|
+
begin
|
37
|
+
@client.find(:xpath, '//*[text()="Month to date "]').click
|
38
|
+
rescue Exception => e
|
39
|
+
@client.find(:xpath, '//*[text()="Custom Range "]').click
|
40
|
+
end
|
37
41
|
@client.find(:xpath, '//*[text()="Last 7 Days"]').click
|
38
42
|
@client.click_button 'Apply'
|
39
43
|
sleep 0.5
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adops_report_scrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stayman Hou
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|