I made two recording - one is to extract the sales amount from web page and one is to extract the sales amount from Putty.
Using "Get Value" action, I got the sales amount in varAmount.
Using the recording, I got text containing the sales amount on Putty window in Clipboard.
I am not sure when/where I add codes to compare varAmount with text in Clipboard.
How to fire a method that compares this variable with text?
I saw the sample code for Clipboard and I added "User Code" action with the method,
public void Validate_ClipboardContentEqual(string compareText, string customLogMessage)
But when I clicked "Param" button, "Bound Variable" field doesn't show "varAmount" which is showing in [Variable] window.
So I am not sure how to bind varAmount with this method.
Anyone has an idea?
How to compare the local variable with text in Clipbaord?
Re: How to compare the local variable with text in Clipbaord?
Hi,
I would suggest you to examine this blog post, about sharing data between modules...
http://www.ranorex.com/blog/sharing-dat ... o-another/
I would suggest you to examine this blog post, about sharing data between modules...
http://www.ranorex.com/blog/sharing-dat ... o-another/
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration