Closed GoogleCodeExporter closed 9 years ago
It's a good idea we expose the active Selenium instance either as `se` or
`selenium` attribute. We can change the library itself to use that too, but we
need to keep the old `_selenium` around for backwards compatibility.
Original comment by pekka.klarck
on 25 Jul 2011 at 10:38
I think I'll go with `selenium` as the property name since it is not too long
to be cumbersome.
Original comment by janne.t....@gmail.com
on 8 Aug 2011 at 7:03
This issue was updated by revision 13fc61e3a3d2.
Original comment by janne.t....@gmail.com
on 8 Aug 2011 at 7:56
Original comment by janne.t....@gmail.com
on 8 Aug 2011 at 11:51
[deleted comment]
{code}
*** Settings ***
Documentation use selenium property so python can access the instance
Library SeleniumLibrary
Library WebKeywordLibrary
*** Test Cases ***
Call Python Keyword and Python Keyword to do Selenium Action
[Tags] psel
Start Selenium Server
Open Browser http://www.google.com firefox ${EMPTY}
WebKeywordLibrary.Do_Selenium_Action
{code}
{code}
import selenium
from robot.libraries.BuiltIn import BuiltIn
class WebKeywordLibrary:
def Do_Selenium_Action(self):
seleniumlib = BuiltIn().get_library_instance('SeleniumLibrary')
print dir(seleniumlib)
self.selenium = seleniumlib.selenium
self.selenium.open("http://www.yahoo.com")
{code}
Original comment by seanogoc...@gmail.com
on 12 Jul 2012 at 12:03
[deleted comment]
Above is an example of this working. (Well kind of, there is a typo or two)
Ex. the closing bracket after yahoo.com"
Original comment by seanogoc...@gmail.com
on 12 Jul 2012 at 12:05
Original issue reported on code.google.com by
ovuaia...@gmail.com
on 25 Jul 2011 at 10:01