Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to compare a certain text inside a WebEdit box?
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
I want to compare a WedEdit box and if it has this WORD on it, do something.

For example, I have a WedEdit box with a drop now that has:

"MyCard VISA, *************1111, exp 07/2020" on it.

I want to compare it to the word VISA in it and if find that word, do something.

It is on a website.

Thanks for helping.
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,
Use regular expression to very a single word in complete string or u can use Instr also.

Let me know in case of any help required.

Regards,
Sankalp
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
try this

Code:
if Instr("MyCard VISA, *************1111, exp 07/2020","VISA")>0 Then
'do something
Else
'VISA not found in the string
End IF

Regards,
Ankesh
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to remove text in the webedit silpavinod 3 13,767 07-12-2018, 11:08 AM
Last Post: vijaychourasiya0109@gmail.com
  Set Value in JavaEdit Inside JavaTable yonobev 9 12,973 11-08-2017, 11:12 PM
Last Post: lotos
  Objects inside WpfList shinji458 23 22,284 11-08-2017, 10:54 PM
Last Post: lotos
  How can we get the Windows application Text box background color Using UFT 11.53 Kuppampattu 3 6,021 06-06-2017, 11:12 AM
Last Post: workrohit08
  Get numbers inside all webelements in webtable and sort them pradeep537 1 2,809 08-04-2016, 01:24 AM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)