vbscript - In QTP, is it possible to have an anti-description? -


I have the dollar amount, some of which are links Example:

$ 0.00

$ 1.00

QTP- How do I say this in shortest form of land?

  set desCurrencyString = Description. DesCurrencyString ("micclass"). I think I can only use the Boolean value to see where this link is and somehow capture other parts of the list, Possibly like this:  
  set desCurrencyString = description. Create desCurrencyString ("text"). Regular Express = true desCurrencyString ("text"). Value = "\ $ [0-9] *" set arrCurrencyStrings = Page.ChildObjects (desCurrencyString) desCurrencyString ("micclass"). Value = "link" arrCurrencyStrings.Remove (desCurrencyString) 'or something else, this line will be edited later  

Just loop through a web tab.
To get cell text, use the GetTelData (line, kernel) method of WebTable object. Obtain the child objects contained in a cell, use the childitum (roe, colonel, mike class, intandex) method of the table, table object

not table lines, cells, spans, divis, etc. Object functions can be reverted because they are not actually GUI object class. (Although, if you need this, you can define such custom objects, but manually set up in the Object Repository Manager.)


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -