[robotframework-seleniumlibrary] 2 new revisions pushed by robotframework@gmail.com on 2012-05-04 11:59 GMT

3 views
Skip to first unread message

robotframework-...@googlecode.com

unread,
May 4, 2012, 7:59:41 AM5/4/12
to robotframework-se...@googlegroups.com
2 new revisions:

Revision: 7b3c0f063258
Author: Robot Framework Developers (robotfr...@gmail.com)
Date: Fri May 4 04:59:16 2012
Log: Add keyword Get Inner Html....
http://code.google.com/p/robotframework-seleniumlibrary/source/detail?r=7b3c0f063258

Revision: f44b2626a555
Author: Robot Framework Developers (robotfr...@gmail.com)
Date: Fri May 4 04:59:22 2012
Log: Automated merge with
https://code.google.com/p/robotframework-selenium...
http://code.google.com/p/robotframework-seleniumlibrary/source/detail?r=f44b2626a555

==============================================================================
Revision: 7b3c0f063258
Author: Robot Framework Developers (robotfr...@gmail.com)
Date: Fri May 4 04:59:16 2012
Log: Add keyword Get Inner Html.

Update issue 208
Status: Done
Owner: janne.t.harkonen
http://code.google.com/p/robotframework-seleniumlibrary/source/detail?r=7b3c0f063258

Modified:
/src/SeleniumLibrary/element.py
/test/acceptance/keywords/elements.txt

=======================================
--- /src/SeleniumLibrary/element.py Thu Dec 15 23:34:07 2011
+++ /src/SeleniumLibrary/element.py Fri May 4 04:59:16 2012
@@ -140,6 +140,16 @@
"""
return self._selenium.get_text(self._parse_locator(locator))

+ def get_inner_html(self, locator):
+ """Returns inner HTML of element identified by `locator`.
+
+ See `introduction` for details about locating elements.
+
+ New in SeleniumLibrary 2.9.
+ """
+ js = "this.browserbot.findElement('%s').innerHTML" % locator
+ return self.execute_javascript(js).strip()
+
def focus(self, locator):
"""Sets focus to element identified by `locator`.

=======================================
--- /test/acceptance/keywords/elements.txt Fri Apr 29 04:21:24 2011
+++ /test/acceptance/keywords/elements.txt Fri May 4 04:59:16 2012
@@ -33,3 +33,6 @@
Should Be True ${pos} > ${0}
Run Keyword And Expect Error Could not determine position
for 'non-existent' Get Horizontal Position non-existent

+Get Inner HTML
+ ${inner}= Get Inner HTML foo
+ Should Be Equal ${inner} <img src="robot.png">&nbsp;Text and
image

==============================================================================
Revision: f44b2626a555
Author: Robot Framework Developers (robotfr...@gmail.com)
Date: Fri May 4 04:59:22 2012
Log: Automated merge with
https://code.google.com/p/robotframework-seleniumlibrary/
http://code.google.com/p/robotframework-seleniumlibrary/source/detail?r=f44b2626a555


Reply all
Reply to author
Forward
0 new messages