02-26-2013, 10:19 AM
When i login successfully loop stays on and keep looking for error msg and then throw an error msg.
Cannot identify the object "Please correct the marked field(s) below." (of class WebElement). Verify that this object's properties match an object currently displayed in your application.
Line (15): "
Tip: If the objects in your application have changed, the Maintenance Run Mode can
help you identify and update your steps and/or the objects in your repository.
Cannot identify the object "Please correct the marked field(s) below." (of class WebElement). Verify that this object's properties match an object currently displayed in your application.
Line (15): "
Code:
Browser("World's Largest Professional").Page("Sign In | LinkedIn").WebElement("Please correct the marked field(s) below.").Output CheckPoint("msgerror")".
Tip: If the objects in your application have changed, the Maintenance Run Mode can
help you identify and update your steps and/or the objects in your repository.
Code:
Dim bro,url
bro = "iexplore"
url = "www.linkedin.com"
Systemutil.Run bro,url
For i = 1 To datatable.GetRowCount Step 1
Browser("World's Largest Professional").Page("World's Largest Professional").WebEdit("session_key").Set datatable( "user")
wait 3
Browser("World's Largest Professional").Page("World's Largest Professional").WebEdit("session_password").Set datatable ("pass")
wait 3
'Browser("World's Largest Professional").Page("Sign In | LinkedIn").WebButton("Sign In").Click
Browser("World's Largest Professional").Page("World's Largest Professional").WebButton("Sign In").Click
If Browser("World's Largest Professional").Page("Sign In | LinkedIn"). Exist Then
Browser("World's Largest Professional").Page("Sign In | LinkedIn").WebElement("Please correct the marked field(s) below.").Output CheckPoint("msgerror")
Browser("World's Largest Professional").Page("Sign In | LinkedIn").WebButton("Sign In").Click
Else
Browser("World's Largest Professional").Page("(14) Welcome! | LinkedIn").WebElement("Account Type:").Check CheckPoint("Account Type:")
' Browser("World's Largest Professional").Page("(14) Welcome! | LinkedIn").Sync
Browser("World's Largest Professional").CloseAllTabs
End If
Datatable.SetNextRow
Next