Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamic obj rep - get text in the class (html)
#1
Not Solved
I can not add the object in the object repository so I am trying to use the class.

I have the code below that is NOT working:
Code:
"Set a = Browser("Delta Dental of Washington").Page("Delta Dental of Washington").Object.getElementsByClassName(".coveo-omnibox-section .coveo-omnibox-selectable")"
"msgbox a"

I can inspect it in Chrome Console with:
Code:
"$(".coveo-omnibox-section .coveo-omnibox-selectable").first().text()"


My question:
I have:
Code:
<div class="alpha-selectable-box" style="display: block; width: 284px;">
  <div class="alpha-box">
    <div class="alpha-section">
       <div class="alpha-line">text 1</div>
       <div class="alpha-line">text 2</div>
       <div class="alpha-line">text 3</div>
       <div class="alpha-line">text 4</div>
1) How do I get the text?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  DP Encapsulation Within Class Object TheGlovner 2 1,846 10-12-2018, 02:11 PM
Last Post: TheGlovner
  regular expression in html sujaravi123 0 2,315 12-31-2013, 03:00 PM
Last Post: sujaravi123
  can class be a variable in DP wyrdo 1 2,504 08-07-2013, 01:33 PM
Last Post: anil2u
Sad QTP Script | how to get object of some open window just using its class type,Java sophia.sabir 1 8,898 08-07-2013, 01:26 PM
Last Post: anil2u
  Read text from text file and save it into a variable in qtp arpan 3 13,056 06-19-2013, 08:34 PM
Last Post: arpan

Forum Jump:


Users browsing this thread: 1 Guest(s)