You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Selenium session id is required for sending test status information back to Sauce Labs, but it's currently not exposed through keywords. Because I want to use the released S2L, I need to monkey patch it to get the id:
would be great if you could provide a path Asko. I would incorporate it.
Cheers,
Jeremy
On Apr 10, 2013, at 2:17 PM, Asko Soukka wrote:
Selenium session id is required for sending test status information back to Sauce Labs, but it's currently not exposed through keywords. Because I want to use the released S2L, I need to monkey patch it to get the id:
I think this keyword is a good idea, however I would like to point out that monkey patching is not needed in this scenario. I used code like this to get the IP of the node when using Grid.:
from robot.libraries.BuiltIn import BuiltIn
def do_something():
session_id = BuiltIn().get_library_instance('Selenium2Library')._current_browser().session_id
...
Activity
j1z0 commentedon Apr 10, 2013
would be great if you could provide a path Asko. I would incorporate it.
Cheers,
Jeremy
On Apr 10, 2013, at 2:17 PM, Asko Soukka wrote:
datakurre commentedon Apr 10, 2013
Thanks. I'll prepare a pull request for this later and close this issue when the pull is there (need to write documentation for the keyword).
ombre42 commentedon Apr 10, 2013
I think this keyword is a good idea, however I would like to point out that monkey patching is not needed in this scenario. I used code like this to get the IP of the node when using Grid.:
datakurre commentedon Apr 10, 2013
@ombre42 Thanks. I was unaware of that possibility.
(I will still try to make a pull request later.)