Hi everyone,
I am facing a problem here. As the subject says, I need to get all the
visible text currently present on a tab of a webpage.
For example,
If the webpage is:
http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/tabs/tabs.aspx
I want to know how to get text only for the currently selected tab.
Currently, since "Signature and Bio" tab is selected, I want to
capture text which should include
"""
Signature:
Bio:
"""
but NOT text from other tabs.
"""
Email:
Controls authored by Toolkit User (read-only - demo purposes):
Calendar
MaskedEdit
Accordion
Calendar
Calendar
"""
I am using selenium2.2 RC standalone server with Python client. I know
there is a method called get_body_text(), but it gets me all the text
present in the html page. I am pretty sure that we need to use
get_eval() method to get the current text. I am not that good with
JavaScript, so if anyone knows how to get the current text shown to
the user using Javascript, please share it?!
Also, using JS, I want to know if there is a way to know if the tab is
selected?
Thanks a lot,
Amit