ngocvo3103_1
14 years agoOccasional Contributor
Regular Expression in FindChild/FindAllChildren methods
Hi all,
I'm facing a problem when using the FindChild/FindAllChildren methods.
I'm find the child using the following properties: ObjectType and innerText to find an email in Inbox of Yahoo mail. Using the Object Spy, I can see the value for ObjectType is Panel, and for the innerText is something like: from + subject + time (Ex: fromsubject3:53 PM). There is no problem with the ObjectType. for the innerText, I'm trying to use regular expression for this case (Ex: fromsubject\d+:\d+\s(AM|PM)), but it's not working. Using wildcard here can make FindChild work but it will match another object also. Is there any solution for this case?
Thank you for reading.
I'm facing a problem when using the FindChild/FindAllChildren methods.
I'm find the child using the following properties: ObjectType and innerText to find an email in Inbox of Yahoo mail. Using the Object Spy, I can see the value for ObjectType is Panel, and for the innerText is something like: from + subject + time (Ex: fromsubject3:53 PM). There is no problem with the ObjectType. for the innerText, I'm trying to use regular expression for this case (Ex: fromsubject\d+:\d+\s(AM|PM)), but it's not working. Using wildcard here can make FindChild work but it will match another object also. Is there any solution for this case?
Thank you for reading.