Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to remove space between webelements
#1
Solved: 11 Years, 3 Months ago
consider that we are having 6 Webelements
Ex: 1.a
2.Space
3.b
4.Space
5.c
6. space

From the above Ex how can i remove that space values and click on b
Reply
#2
Solved: 11 Years, 3 Months ago
Hi ,

you need to use your own logic for avoiding 'space' web elements.

like :

Code:
for i = 1 to 6
  if browser().page().webelement("space").exist then
    next
  end if
  browser().page().webelement("property").click
next

Here for 'i' loop u have to use the child Item count or need to store the properties of the 'web element' in an array and then using descriptive programming u can use them.

Thanks,
Harish
Reply
#3
Solved: 11 Years, 3 Months ago
ok fine thanks
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to remove the spaces from a string Anand 7 29,296 08-12-2019, 04:47 PM
Last Post: sreekanthP
  How to remove text in the webedit silpavinod 3 13,710 07-12-2018, 11:08 AM
Last Post: vijaychourasiya0109@gmail.com
  Get numbers inside all webelements in webtable and sort them pradeep537 1 2,774 08-04-2016, 01:24 AM
Last Post: Ankur
  how to use keyboard "Space' using qtp Naresh 2 3,074 06-11-2015, 06:30 PM
Last Post: venkatesh9032
  Comparing webtable data with weblist and webelements in other webpage arnav 1 5,786 04-18-2014, 10:01 PM
Last Post: Parke

Forum Jump:


Users browsing this thread: 1 Guest(s)