webdriver-user-agent 0.2.2 → 6.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/README.md +1 -67
- data/webdriver-user-agent.gemspec +2 -1
- metadata +5 -17
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZjYxMTkxODdmYjlmOTkyZTViMWUwNTM2OTljNGVlZmY0OGE4ODM1YQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZjMzY2ZmMzg0YjU4ZGVjN2I3NjVlYWQ5NzE2YzYxZTIzYjA4NmFkZg==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MDk3OTAzOTlmNWYwNWI4ZDU3MWVmYzEzZmI0YjVlNDQzNmE1MjBhZGI1MjEz
|
10
|
+
Y2RiYmNlZjlhZWNhNmIxMGQ4MDU0MmQxZjQwZWUxYTRjZmYzYzQyYjkxYzIx
|
11
|
+
MTIxZTAyOGY3OWY5MjA0OWQ2NTUxYzEwZGY0OTI5OGY4MWU3MDM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NTZiYjQ2NzdjZmRkOTlkODVlNjEyYjg1NmJkNzNkYzE5MGNjYTg5ZDNjYWEz
|
14
|
+
OTkwNWRiZWYyOTYyODZiYjg4NmIwYTc5ZDExYWUxZmQ4NWNmMGMyNmJlMDFi
|
15
|
+
MWVkZmNkNjk3YjI3ZTAzYmJhYTY2MGQ1YzM3NmMwNDA1NjZlZDc=
|
data/README.md
CHANGED
@@ -1,69 +1,3 @@
|
|
1
1
|
# Webdriver::User::Agent
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
Add this line to your application's Gemfile:
|
8
|
-
|
9
|
-
gem 'webdriver-user-agent'
|
10
|
-
|
11
|
-
And then execute:
|
12
|
-
|
13
|
-
$ bundle
|
14
|
-
|
15
|
-
Or install it yourself as:
|
16
|
-
|
17
|
-
$ gem install webdriver-user-agent
|
18
|
-
|
19
|
-
## Usage
|
20
|
-
|
21
|
-
provides a UserAgent.driver method to return a new web-driver with user agent and screen resolution mimicking a mobile device.
|
22
|
-
|
23
|
-
### Options
|
24
|
-
|
25
|
-
* :browser
|
26
|
-
* :firefox (default)
|
27
|
-
* :chrome
|
28
|
-
* :agent
|
29
|
-
* :iphone (default)
|
30
|
-
* :ipad
|
31
|
-
* :android_phone
|
32
|
-
* :android_tablet
|
33
|
-
* :random
|
34
|
-
* :orientation
|
35
|
-
* :portrait (default)
|
36
|
-
* :landscape
|
37
|
-
|
38
|
-
### Example using selenium-webdriver
|
39
|
-
|
40
|
-
require 'selenium-webdriver'
|
41
|
-
require 'webdriver-user-agent'
|
42
|
-
driver = UserAgent.driver(:browser => :chrome, :agent => :iphone, :orientation => :landscape)
|
43
|
-
driver.get 'http://tiffany.com'
|
44
|
-
driver.current_url.should == 'http://m.tiffany.com/International.aspx'
|
45
|
-
|
46
|
-
### Example using random user agent
|
47
|
-
|
48
|
-
require 'selenium-webdriber'
|
49
|
-
require 'webdriver-user-agent'
|
50
|
-
driver = UserAgent.driver(:agent => :random)
|
51
|
-
driver.execute_script('return navigator.userAgent')
|
52
|
-
# random agent like "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1"
|
53
|
-
|
54
|
-
### Example using watir-webdriver
|
55
|
-
|
56
|
-
require 'watir-webdriver'
|
57
|
-
require 'webdriver-user-agent'
|
58
|
-
driver = UserAgent.driver(:browser => :chrome, :agent => :iphone, :orientation => :landscape)
|
59
|
-
browser = Watir::Browser.new driver
|
60
|
-
browser.goto 'tiffany.com'
|
61
|
-
browser.url.should == 'http://m.tiffany.com/International.aspx'
|
62
|
-
|
63
|
-
## Contributing
|
64
|
-
|
65
|
-
1. Fork it
|
66
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
67
|
-
3. Commit your changes (`git commit -am 'Added some feature'`)
|
68
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
69
|
-
5. Create new Pull Request
|
3
|
+
THIS HAS BEEN DEPRECATED
|
@@ -12,10 +12,11 @@ Gem::Specification.new do |gem|
|
|
12
12
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
13
13
|
gem.name = "webdriver-user-agent"
|
14
14
|
gem.require_paths = ["lib"]
|
15
|
-
gem.version = "
|
15
|
+
gem.version = "6.6.6"
|
16
16
|
gem.add_dependency 'selenium-webdriver'
|
17
17
|
gem.add_dependency 'facets'
|
18
18
|
gem.add_dependency 'json'
|
19
19
|
gem.add_development_dependency 'rspec'
|
20
20
|
gem.add_development_dependency 'watir-webdriver'
|
21
|
+
gem.post_install_message = "THIS GEM HAS BEEN DEPRECATED AND NO LONGER MAINTAINED"
|
21
22
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webdriver-user-agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 6.6.6
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Alister Scott
|
@@ -14,7 +13,6 @@ dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: selenium-webdriver
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ! '>='
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: facets
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ! '>='
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ! '>='
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,7 +41,6 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: json
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ! '>='
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ! '>='
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -62,7 +55,6 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: rspec
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - ! '>='
|
68
60
|
- !ruby/object:Gem::Version
|
@@ -70,7 +62,6 @@ dependencies:
|
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - ! '>='
|
76
67
|
- !ruby/object:Gem::Version
|
@@ -78,7 +69,6 @@ dependencies:
|
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: watir-webdriver
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
73
|
- - ! '>='
|
84
74
|
- !ruby/object:Gem::Version
|
@@ -86,7 +76,6 @@ dependencies:
|
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
80
|
- - ! '>='
|
92
81
|
- !ruby/object:Gem::Version
|
@@ -113,27 +102,26 @@ files:
|
|
113
102
|
- webdriver-user-agent.gemspec
|
114
103
|
homepage: https://github.com/alisterscott/webdriver-user-agent
|
115
104
|
licenses: []
|
116
|
-
|
105
|
+
metadata: {}
|
106
|
+
post_install_message: THIS GEM HAS BEEN DEPRECATED AND NO LONGER MAINTAINED
|
117
107
|
rdoc_options: []
|
118
108
|
require_paths:
|
119
109
|
- lib
|
120
110
|
required_ruby_version: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
111
|
requirements:
|
123
112
|
- - ! '>='
|
124
113
|
- !ruby/object:Gem::Version
|
125
114
|
version: '0'
|
126
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
|
-
none: false
|
128
116
|
requirements:
|
129
117
|
- - ! '>='
|
130
118
|
- !ruby/object:Gem::Version
|
131
119
|
version: '0'
|
132
120
|
requirements: []
|
133
121
|
rubyforge_project:
|
134
|
-
rubygems_version:
|
122
|
+
rubygems_version: 2.0.3
|
135
123
|
signing_key:
|
136
|
-
specification_version:
|
124
|
+
specification_version: 4
|
137
125
|
summary: A helper gem to emulate populate device user agents and resolutions when
|
138
126
|
using webdriver
|
139
127
|
test_files:
|