firefoxClass. A class to represent Firefox web browserget(url = ""):getTitle():getCurrentUrl():getPageSource():printHtml():forward():back():close():getCapabilities():getVersion():webElementClass object. Functions of type 'finElements' return a list of webElementClass objects. findElementByXPath:findElementByClassName:findElementByCssSelector:findElementById:findElementByName:findElementByLinkText:findElementByPartialLinkText:findElementByTagName:findElementsByXPath
findElementsByClassName
findElementsByCssSelector
findElementsById
findElementByPartialLinkText
findElementsByLinkText
findElementsByName
findElementsByPartialLinkText
findElementsByTagName
ReferenceClasses for more details). This class is designed to represent and to interact with a Firefox web browser.
You can open a new Firefox web browser with firefoxClass$new(), navigate to any web page, extract web data and find web elements by different ways like tag name, text, id, xpath and others.All methods implemented are explained below. Documentation is based on the original Selinum's Java documentation. It is possible to access to the methods through TAB completion.
Normally Firefox's binary is assumed to be in your system's default location:
A simple firefoxClass example can be found at the end of this file. You can get a more sofisticated one using demo(package = "relenium").
ReferenceClasses, relenium-package, webElementClass
## Not run:
# require(relenium)
#
# firefox <- firefoxClass$new()
# firefox$get("https://github.com/LluisRamon/relenium")
# firefox$getTitle()
# firefox$close()
# ## End(Not run)
Run the code above in your browser using DataLab