Please see me Webelement properties.
When I pass parameter 'Honda', it recognises on Web page.
When I pass parameter 'Honda(USA)', it NOT recognises on Web Page.
Please advise, why this is not recognised just with Bracket()in my parameter?
Public Function Lock(ByVal strItemname)
Set oItem = oBrowser.WebElement("outertext:="&strItemname, "index:=0")
Why do want to pass values in the paranthesis()? , if that property value is not correct object wont be recognized.
Perform a Obj Spy and check the correct property value of the object.
-- Here to Learn and share ---
These WebElement Label Text contains paranthesis.
Example: Honda, Honda(India), Honda(USA).
When i am passing Honda as my parameter, it recognised,but
When I am passing Honda(USA) or Honda(India), its NOT recognised ..is this because of Regular expression.
Please help to change my code.
I have resolved it...Thanks for your Help
Regular expression is no where used in the code you pasted.
Spy the object and note the actual property name and its actual value, is possible attach a snapshot of the same.
It is about the (, you should change the name of the webElement in object Repository or add \(,
Vasu, what was the issue..??
Yes, please let us know.
My guess was escape character for parenthesis.