Difference between revisions of "Lapis Lazuli:Missing documentation"

From Test Automation Wiki
Jump to: navigation, search
 
(One intermediate revision by one other user not shown)
Line 10: Line 10:
 
- Using a single statement to find an element that both contains attributeA valueA AND attributeB valueB
 
- Using a single statement to find an element that both contains attributeA valueA AND attributeB valueB
 
<source>
 
<source>
browser.multi_find(
+
browser.find(
 
   :input => {:class => "gsfi", :id=> "lst-ib"}
 
   :input => {:class => "gsfi", :id=> "lst-ib"}
 
).flash
 
).flash
Line 16: Line 16:
  
 
- How to select an element from a drop down menu
 
- How to select an element from a drop down menu
 +
 +
- How to interact with an element (click, hover, flash, etc)
  
 
- How to debug using IRB
 
- How to debug using IRB
Line 23: Line 25:
 
include LapisLazuli
 
include LapisLazuli
 
browser :chrome
 
browser :chrome
browser.goto 'anus.com'
+
browser.goto 'asus.com'
 
</source>
 
</source>

Latest revision as of 10:38, 15 February 2017

This page will contain links and or idea's that should still be documented for lapis lazuli.

- using a single find statement to look for either selector A or selector B

browser.multi_wait(
  {:like => [:a, :text, arg1]},
  {:like => [:a, :text, arg2]}
)

- Using a single statement to find an element that both contains attributeA valueA AND attributeB valueB

browser.find(
  :input => {:class => "gsfi", :id=> "lst-ib"}
).flash

- How to select an element from a drop down menu

- How to interact with an element (click, hover, flash, etc)

- How to debug using IRB

irb
require 'lapis_lazuli'
include LapisLazuli
browser :chrome
browser.goto 'asus.com'