Module: Selenium

Defined in:
lib/browserfactory.rb

Overview

ABSTRACT

PampaBrowser should pull a screenshot every N seconds, from a thread. But can’t operate the same browser from more than 1 thread. More information here: stackoverflow.com/questions/28093347/is-selenium-webdriver-thread-safe

Should use a lockfile. More information here: bibwild.wordpress.com/2015/01/15/ruby-threads-gotcha-with-local-vars-and-shared-state/ stackoverflow.com/questions/55895952/ruby-how-do-i-share-a-global-variable-amongst-threads-that-are-running-an-objec

So, I should overwrite all methods of the Selenium::Browser, Selenium::Element, and also Watir::Wait

More information here: stackoverflow.com/questions/6966708/how-to-add-statements-to-an-existing-method-definition-in-ruby stackoverflow.com/questions/44577888/ruby-alias-method-for-module-static-method

**The “frequency-based-streaming” model**

At this moment, I couldn’t overwrite Watir::Wait’s methods. At this moment, PampaBrowser is simple sending the screenshot when some particular methods has been called, but this appreach is not updating the screen when the website load new contenct thru AJAX with not need of and user interaction.

Defined Under Namespace

Modules: WebDriver