I need to fill a form and submit in a sharepoint application. I have interrogated all the required fields. The required fields contains: textboxes, dropdowns, richtextbox.
I am unable to enter values consistently in the textboxes as the page refreshes once i select a value from the drop down. So i tried selecting value from dropdown first, then entered value into textbox. This only works some times in debug mode. I also tried increasing the wait for create time. Even then the values are not getting stored.
After inspecting the html textbox element, i have added few events in the automation like focus, Raiseevent(onproperty change), Raiseevent(Onblur)... Even then few textboxes are not storing the value.
If the page refreshes whenever you make a change, you might need to add a WaitForEvent (WFE) for the Created event as you change values. To add a WFE for the Created event for a control, drag the control's Created event to the automation. Right-click on it and select "Wait for this event". Off of the Setup link, call your RaiseEvent method (or whatever action triggers the refresh of the page). The Fired link will occur when the event happens and the timeout link will happen if it does not.
Posted: 3 years ago
Posted: 4 Sep 2019 11:05 EDT
Sravan Aluvala (chakri5122)
Tech Mahindra Ltd
Tech Mahindra Ltd
It is important to understand how the application is behaving after you make your selectioins (or enter text or whatever). What you really want to wait for is the event that tells you the selection is complete and the next field is ready for populating. For this type of analysis, I would write the events as they occur to a ListBox on a Windows Form. This will allow you to see them happening in real time as you manually make selections in the application. This will help you identify what events fire and what the last one is that you want to wait for.