how to capture a part of wndCaption text
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2019
02:28 AM
02-04-2019
02:28 AM
how to capture a part of wndCaption text
Hi,
I need to “copy” the contract number for later use in the testscript.
How do I make a variable of the wndcaption text, but on the the GABV.1900176 (which is changed everytime I run a test)
Kind regards
Bram
Solved! Go to Solution.
3 REPLIES 3
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2019
04:05 AM
02-04-2019
04:05 AM
Hi Bram,
I would use regular expression to extract a sequence of digits between two dots.
Regards,
/Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
/Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2019
04:50 AM
02-04-2019
04:50 AM
Is there anyway i can do this in a keyword test?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2019
06:35 AM
02-04-2019
06:35 AM
I have added a code snippet : KeywordTests.aanmaken_en_registreren_contract.Variables.WndCaption = aqString.SubString( KeywordTests.aanmaken_en_registreren_contract.Variables.WndCaption, 50,7);
this worked!
