-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspool.rb
27 lines (27 loc) · 982 Bytes
/
spool.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$btns = driver.find_elements(:css, 'button')
driver
driver.current_url
driver.title
$btns = driver.find_elements(:css, 'jbutton')
$btns = driver.find_elements(:css, 'button')
$btns = driver.find_elements(:class, 'javax.swing.JButton')
$btns = driver.find_elements(:type, 'com.sun.swingset3.demos.optionpane.OptionPaneDemo$7')
$btns = driver.find_elements(:class, 'com.sun.swingset3.demos.optionpane.OptionPaneDemo$7')
driver.find_elements(:class, 'javax.swing.Compoenent')
driver.find_elements(:class, 'javax.swing.Component')
$btns = driver.find_elements(:css, 'button')
$btns.length
$btns.length
$btns = driver.find_elements(:css, 'button')
$btns.length
$btns
$btns[1].click
with_window("JOptionPane Demo")
window('JOptionPane Demo')
$btns = driver.find_elements(:css, 'button')
$btns[1].click
$btns = driver.find_elements(:css, 'button')
$btns = driver.find_elements(:css, 'button')
driver.title
driver.switch_to.window(driver.title)
$btns = driver.find_elements(:css, 'button')