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
#2
Not Solved
Probably there is more than one webelement with the same begining name..
To check add the object to the repository and regular r
Expression innertext and highlight in the application.
Does it point to the same webelement?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


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 2,709 04-24-2018, 02:12 PM
Last Post: Ankur
  Time Delay issue with Exist mv8167 11 23,960 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,256 01-17-2015, 07:49 PM
Last Post: yogi4tech
  Performance Issues Using '.Exist' AndyBSG 2 3,143 12-12-2014, 03:24 PM
Last Post: AndyBSG
  Part of parameters missing when passing between actions skumar007 1 2,838 10-10-2014, 02:00 AM
Last Post: skumar007

Forum Jump:


Users browsing this thread: 1 Guest(s)