Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do we use OR operator with Desc Programming.
#1
Not Solved
say I want to count the nos of all the objects on the page which have
html tag = "A" OR innertext="B"
what will be the syntax for the same.
Code:
(Desc("html tag").value="A")  OR (Desc("innertext").value="B") => throws syntax error.

TIA
Reply
#2
Not Solved
any one?? I googled, but could not find out.
Reply
#3
Not Solved
Hi Anu,
you have to use regular expresssion - (|) pipe symbol.

Checkout regular expression topic in qtp helper guide.
Thanks,
SUpputuri
Reply
#4
Not Solved
thanks for your reply, I know regular expressions but I am not sure how to use it in this case? can you tell me how. ?? I hope you understood the question.
say I want to count the nos of all the objects on the page which have
html tag = "A" OR innertext="B"

one way we can do this is first count the objects individually with html tag = "A" add this count to the objects having innertext="B" now from this total count subtract the objects which have html tag = "A" and innertext="B".
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  workaround for addition airthmetic operator krr 1 1,752 01-06-2013, 04:13 AM
Last Post: kordirko
Exclamation How to parameterize / do Desc. Programm on Calender control nistalaramesh 7 6,306 05-10-2011, 11:24 AM
Last Post: nistalaramesh
  Concatenation operator in Vbscript sk.aravind 7 6,155 09-14-2010, 08:31 PM
Last Post: lotos

Forum Jump:


Users browsing this thread: 1 Guest(s)