Difference between revisions of "Lapis Lazuli:Missing documentation"
(Created page with "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 brows...") |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
- using a single find statement to look for either selector A or selector B | - using a single find statement to look for either selector A or selector B | ||
+ | <source> | ||
browser.multi_wait( | browser.multi_wait( | ||
{:like => [:a, :text, arg1]}, | {:like => [:a, :text, arg1]}, | ||
{:like => [:a, :text, arg2]} | {:like => [:a, :text, arg2]} | ||
) | ) | ||
+ | </source> | ||
+ | - Using a single statement to find an element that both contains attributeA valueA AND attributeB valueB | ||
+ | <source> | ||
+ | browser.find( | ||
+ | :input => {:class => "gsfi", :id=> "lst-ib"} | ||
+ | ).flash | ||
+ | </source> | ||
- 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 | ||
+ | <source> | ||
irb | irb | ||
require 'lapis_lazuli' | require 'lapis_lazuli' | ||
include LapisLazuli | include LapisLazuli | ||
browser :chrome | browser :chrome | ||
− | browser.goto ' | + | browser.goto 'asus.com' |
+ | </source> |
Latest revision as of 11: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'