Archive

Posts Tagged ‘webdriver’

Get current page URL webdriver 2.0

Get the URL of the current page

@driver.current_url

Advertisements
Categories: Selenium Tags: , ,

Elements Locators in Selenium Ruby webdriver

        :class             => ‘class name’,
        :class_name        => ‘class name’,
        :css               => ‘css selector’,
        :id                => ‘id’,
        :link              => ‘link text’,
        :link_text         => ‘link text’,
        :name              => ‘name’,
        :partial_link_text => ‘partial link text’,
        :tag_name          => ‘tag name’,
        :xpath             => ‘xpath’
Categories: Selenium Tags: , ,