Sync does not seem to work with SharePoint Cloud applications
Question ID: 108211

We are automating SharePoint 2013 Cloud applications and ".sync" does not seem to work at all or inconsistently.

When we debug is Test Plan, the sync appears to happen. However, when running in Test Lab, the sync doesn’t happen or happens inconsistently. We know this because if we are waiting for a page to render before acting on an Object, it tries to find the Object before it is there.

As a workaround we have increased the seconds for the Exist on the object we are trying to find, ex. .Exist(100). But even this doesn’t work all the time.

Any help would be GREATLY appreciated!

1. None of these syncs worked
‘ Browser("name:=.*").Page("title:=.*").Sync
‘Browser("name:=News Articles – New Item").Sync
‘Browser("name:=News Articles – New Item").Page("title:=News Articles – New Item").Sync
2. Ultimately had to put a wait in, Yuck! in addition to increasing the number of seconds the Exist waits
wait 10
3. Overroad default for exist with 100 seconds
If SharePoint.WebEdit("Title:=Title Required Field", "index:=0").Exist(100) Then
SharePoint.WebEdit("Title:=Title Required Field", "index:=0").Set strTitle
Call ReportToHtml(g_strScriptName,"Report","Enter Title:", "Entered: "&strTitle,"Pass",g_ScreenShot4Pass,bPrintResult)
Call ReportToHtml(g_strScriptName,"Report","Enter Title:", "Cannot Enter","Fail",True,bPrintResult)
End If

Marked as spam
Posted by (Questions: 4, Answers: 1)
Asked on March 21, 2018 6:14 pm
Answers (1)
Private answer

Have you tried using the WaitProperty method for synchronization. Have a look at this:

Marked as spam
Posted by (Questions: 2, Answers: 477)
Answered on October 29, 2018 2:01 pm

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

Scroll to Top