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, 4 Months 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, 4 Months 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, 4 Months 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,811 07-12-2018, 11:08 AM
Last Post: vijaychourasiya0109@gmail.com
  Set Value in JavaEdit Inside JavaTable yonobev 9 13,015 11-08-2017, 11:12 PM
Last Post: lotos
  Objects inside WpfList shinji458 23 22,350 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,050 06-06-2017, 11:12 AM
Last Post: workrohit08
  Get numbers inside all webelements in webtable and sort them pradeep537 1 2,831 08-04-2016, 01:24 AM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)