What the heck is the bot.dom?

96 views
Skip to first unread message

James Davis

unread,
Aug 20, 2011, 3:48:13 PM8/20/11
to Selenium Users
I have been reviewing the WebDriver javascript trunk have seen
goog.require('bot.dom'); in a few of the files. What the heck is the
bot.dom? Where can I view the source file?

sincerely,

James Davis


Daniel Wagner-Hall

unread,
Aug 22, 2011, 1:13:58 PM8/22/11
to Selenium Users
We heavily use the Google Closure compiler and libraries [1].
goog.require('x') signifies to the compiler that the file which
contains goog.provide('x') must be included, and it will provide a
definition for x.

Our bot namespace lives at $TRUNK/javascript/atoms. bot.dom is
accordingly defined in $TRUNK/javascript/atoms/dom.js

We also have tests for the bot namespace at $TRUNK/javascript/atoms/
test - they can be run by opening the html file in your browser you
want to test in; for some of the tests, they need to actually be run
from a host, rather than a file:// URL; there are instructions for
this, as well as more information, at https://code.google.com/p/selenium/wiki/AutomationAtoms

Hope this


1: https://code.google.com/closure/

James Davis

unread,
Aug 23, 2011, 12:29:40 PM8/23/11
to Selenium Users
Thank you for your help Daniel.
Reply all
Reply to author
Forward
0 new messages