I am trying to get the links from Google adverts that appear in a webpage in programmatic manner. I have been testing Ruby and Capybara but I have an issue where the DOM as stated by Capybara is not the same as the DOM I see in Firefox. I am using the Selenium driver so I should see the same DOM.
This is the code I am using:
require 'capybara' session = Capybara::Session.new(:selenium) session.visit('https://google-developers.appspot.com/custom-search-ads/docs/sample') puts session.html
Thanks in advance.