Hi,
I want to get the Title of Browser's Tab and want to store it in a string variable. I'm using C# for my Scripts.
Please help me how to do it ?
Thanks,
Mudit
How to get the Browser's Tab title text ?
-
- Posts: 7
- Joined: Wed Feb 19, 2014 11:53 am
- Location: India
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to get the Browser's Tab title text ?
Hi Mudit,
You can use, for example the "Get Value" action in the Ranorex Recorder using the caption attribute.
You can also use the following code snippet in order to get the text of the browser tab.
Bernhard
You can use, for example the "Get Value" action in the Ranorex Recorder using the caption attribute.
You can also use the following code snippet in order to get the text of the browser tab.
YourVariable = repo.DomElement.Self.Element.GetAttributeValueText("Caption");Regards,
Bernhard
You do not have the required permissions to view the files attached to this post.
-
- Posts: 7
- Joined: Wed Feb 19, 2014 11:53 am
- Location: India