I want to put a checkpoint to see it this text gets displayed -
An email has been sent to your email address:firstname.lastname@example.org.Please follow the instructions in the email to complete registration.
So I have put a text check point but the email address is a parameter which I have entered during registration , so I want to make only the email as parameter not the entire text . How do I do that??
when I try to parameterize my checked text it is parameterizing entire text but want to parameterize only the email address
Search for string handling functions with vbscript.
Ex : Instr
-- Here to Learn and share ---
strPart1 = "An email has been sent to your email address:"
strpart2 = ".Please follow the instructions in the email to complete registration."
email = DataTable("email")
fullString = strPart1 & email & strPart2
If Not Browser("X").Page("Y").WebElement("innerTExt:="&am p;fulString,"html tag:=DIV").Exist Then
MsgBox "Not Exist"
MsgBox "Yes Exist"
You will need to spy on the string and change the html tag if it is not a DIV (e.g it may be a SPAN or something like that)
My linkedIn Profile
Will try this Thank you
my email is given as a testparameter so how do i handle that??
And what is the webelement ?? should i capture the entire text as a webelement??
If Not Browser("X").Page("Y").WebElement("innerText:="&am p;DataTable("MyEmail"),"html tag:=DIV").Exist Then
But I have given the email as testparameter not datatable parameter ?? so how would it take if I give it as DataTable("MyEmail"),sorry for the confusion .