Selenium 1.1.12 → 1.1.14
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/selenium.rb +0 -1
- data/lib/selenium/text_field.rb +2 -2
- data/lib/selenium/version +1 -1
- data/lib/selenium/web_page.rb +1 -0
- data/spec/selenium/screenshot.png +0 -0
- data/spec/selenium/tc_web_page.rb +20 -0
- metadata +2 -3
- data/lib/selenium/locator.rb +0 -15
data/lib/selenium.rb
CHANGED
data/lib/selenium/text_field.rb
CHANGED
data/lib/selenium/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.14
|
data/lib/selenium/web_page.rb
CHANGED
Binary file
|
@@ -40,6 +40,26 @@ module Selenium
|
|
40
40
|
webpage.link(:href, 'a.html').locator.should == "xpath=//a[@href='a.html']"
|
41
41
|
end
|
42
42
|
|
43
|
+
it 'should convert how and what to locator for selenium driver' do
|
44
|
+
webpage.element_locator('name').should == 'name'
|
45
|
+
webpage.element_locator(:id, 'id').should == 'id=id'
|
46
|
+
webpage.element_locator(:name, 'name').should == 'name=name'
|
47
|
+
webpage.element_locator(:xpath, '//a').should == 'xpath=//a'
|
48
|
+
end
|
49
|
+
|
50
|
+
it 'should support elements by passing in name directly' do
|
51
|
+
webpage.open_page('/test/index.html')
|
52
|
+
text_field = webpage.text_field('doubleclick')
|
53
|
+
text_field.locator.should == 'doubleclick'
|
54
|
+
text_field.enter('webpage')
|
55
|
+
webpage.text_area('doubleclick').enter('webpage')
|
56
|
+
webpage.text_area('doubleclick').double_click
|
57
|
+
webpage.should be_alert_present
|
58
|
+
webpage.alert_message.should == 'double clicked with value webpage'
|
59
|
+
webpage.text_area('doubleclick').key_press('a')
|
60
|
+
webpage.text_area('doubleclick').value.should == 'webpagea'
|
61
|
+
end
|
62
|
+
|
43
63
|
it 'should support double click and key press' do
|
44
64
|
webpage.open_page('/test/index.html')
|
45
65
|
webpage.enter('doubleclick', 'webpage')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Selenium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Duan
|
@@ -9,7 +9,7 @@ autorequire: selenium
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-07-
|
12
|
+
date: 2008-07-17 00:00:00 -07:00
|
13
13
|
default_executable: selenium
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -36,7 +36,6 @@ files:
|
|
36
36
|
- lib/selenium/html_element.rb
|
37
37
|
- lib/selenium/key.rb
|
38
38
|
- lib/selenium/link.rb
|
39
|
-
- lib/selenium/locator.rb
|
40
39
|
- lib/selenium/openqa
|
41
40
|
- lib/selenium/openqa/README
|
42
41
|
- lib/selenium/openqa/selenium-server.jar.txt
|