Error appears when validating - Web element is invalid

Ranorex Spy, Recorder, and Studio.
cwirek
Posts: 29
Joined: Mon Jul 02, 2012 4:24 pm

Error appears when validating - Web element is invalid

Post by cwirek » Tue Jul 03, 2012 2:58 pm

Hi

I get an error while running my test - it appears once in every ten test runnings.
Error appears when validating the attribute ‘innerText’ of label, span on div.

Error message:

Code: Select all

Ranorex.RanorexException: Web element is invalid. Server stack trace: at Ranorex.Core.InvokerControl.CallMethod(CallMethodDelegate target, Object[] args) at Ranorex.Plugin.TridentIpc.TridentDom.GetElementValue(IntPtr elemRef, String name, Boolean isSpecialValue) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Ranorex.Plugin.TridentIpc.ITridentDom.GetElementValue(IntPtr elemRef, String name, Boolean isSpecialValue) at Ranorex.Plugin.WebRemoteFlavorElement..ctor(IntPtr elementRef, IntPtr superBrowserRef, List`1 parentFrameElemRefs, IntPtr ieHandle, ITridentDom proxy, IDictionary`2 initialValues, Boolean doRemoteRefCnt) at Ranorex.Plugin.WebFlavor.GetChildLineageFromUId(LinkedList`1 lineage, List`1 parentFrameRefs, IntPtr browserRef, IntPtr ieHandle, ITridentDom proxy, UidFindResult& result) at Ranorex.Plugin.WebDocumentRemoteFlavorElement.GetChildLineageFromUid(String uidValue, UidFindResult& result) at Ranorex.Core.Element.FindFromUid(String uidValue, Element& result) at Ranorex.Core.RxPath.ApplyInternal(RxPath path, Element startElement, Duration timeout, Boolean findSingle) at Ranorex.Core.Element.TryFindInternal(RxPath path, Duration timeout, Boolean findSingle, IList`1& foundElements) at Ranorex.Core.Repository.RepoItemInfo.Find[T](Boolean findSingle, Boolean throwException) 
or

Code: Select all

Ranorex.ValidationException: Attribute 'InnerText' of element for item 'SyncOnlineRepository.HasłoText' does not match the specified value (Web element is invalid.). at Ranorex.Validate.IsTrueInternal(Boolean condition, String message, Options options, RepoItemInfo itemInfo) at Ranorex.Validate.Attribute(RepoItemInfo itemInfo, String name, Object value, String message, Options options)

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Error appears when validating - Web element is invalid

Post by Support Team » Tue Jul 03, 2012 4:14 pm

Hi,

We aren't able to reproduce it but as also other customers reported it we were able to narrow down the issue and we found a code which could trigger this error.
This fix will be available with Ranorex 3.3.1.

Regards,
Markus
Ranorex Support Team
.
Image