Skip to content

Instantly share code, notes, and snippets.

View biske's full-sized avatar

Ivan Bisevac (Иван Бишевац) biske

View GitHub Profile
@biske
biske / living.rb
Last active December 23, 2015 01:59
if page.has_no_selctor?(:xpath, "//h1", text: "Missing Deal")
if page.has_selector?(:xpath, '//*[@id="deal_merchant_display_name"]')
sheet[red,0] = find(:xpath, '//*[@id="deal_merchant_display_name"]').text
end
if page.has_selector?(:xpath, '//*[@id="option_title_for_deal"]')
sheet[red,1] = find(:xpath, '//*[@id="option_title_for_deal"]').text
end
if page.has_selector?(:xpath, '//*[@id="view-details-full"]/p[2]')
sheet[red,2] = find(:xpath, '//*[@id="view-details-full"]/p[2]').text
end
@biske
biske / google_robot.rb
Last active December 19, 2015 08:29
Google robot
require 'capybara/dsl'
require 'selenium-webdriver'
Capybara.run_server = false
Capybara.default_driver = :selenium
class GoogleRobot
include Capybara::DSL
def go
[Desktop Entry]
Name=Aptana Studio 3
Comment=Integrated development environment (IDE) for building Ajax web applications.
Exec=/home/biske/Aptana_Studio_3/AptanaStudio3 -applciation
Icon=/home/biske/Aptana_Studio_3/icon.xpm
Terminal=false
Type=Application
StartupNotify=true
Categories=Development;RevisionControl;
X-GNOME-FullName=Aptana Studio 3