Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exist returns false with part of innertext
#1
Not Solved
Following returns True with Full Innertext "Country Code: BE Currency Code: EUR"

Code:
Set Obj_WebElement=Description.Create()
Obj_WebElement("html tag").value = "TD"
Obj_WebElement("innertext").value = "Country Code: BE Currency Code: EUR"
Obj_WebElement("micclass").value = "WebElement"

If Browser(obj_Browser).Page(obj_Page).WebElement(Obj_WebElement).Exist (5) Then
Msgbox "Found Country & Currency Code"

But with part of innertext "Country Code:" followed by .*

Obj_WebElement("innertext").value = "Country Code:.*"

The same returns false

Can anyone explain why?
Reply


Messages In This Thread
Exist returns false with part of innertext - by Milindt43 - 02-18-2011, 02:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Exist and Visible Are True When Objects Aren't There - Is there A Better Way? zunebuggy 3 3,144 04-24-2018, 02:12 PM
Last Post: Ankur
  Time Delay issue with Exist mv8167 11 24,798 06-19-2017, 02:56 PM
Last Post: grosorg
  This code does not give total no of links present on page plz help it returns 0 excellentpawan 8 5,629 01-17-2015, 07:49 PM
Last Post: yogi4tech
  Performance Issues Using '.Exist' AndyBSG 2 3,498 12-12-2014, 03:24 PM
Last Post: AndyBSG
  Part of parameters missing when passing between actions skumar007 1 3,004 10-10-2014, 02:00 AM
Last Post: skumar007

Forum Jump:


Users browsing this thread: 2 Guest(s)