Web element is invalid

Bug reports.
omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

Web element is invalid

Post by omayer » Fri Jun 08, 2012 9:06 pm

after upgrade to ranrox 3.3. now Kept getting error "Web element is invalid. " work around to hit ALT key from keyboard, now sure how key gets locked on each run...Here are mote details on the error-
NOTE: looks like if I add this line --" Keyboard.Press("{LMenu}");" on each function then it works otherwise failed each function-

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.Element.TryFindSingleInternal(RxPath path, Duration timeout, Element& foundElement) at Ranorex.Core.Element.TryFindSingle(RxPath path, Duration timeout, Element& foundElement) at Ranorex.Adapter.TryFindSingle[T](RxPath path, Duration timeout, T& foundAdapter) at ConsoleAppProject.TestRunAttempt.PeoplSoftPageLoad() in c:\SVNviews\Automation\MASTER\Projects\ConsoleAppProject\TestRunAttempt.cs:line 83 at ConsoleAppProject.TestRunAttempt.Ranorex.Core.Testing.ITestModule.Run() in c:\SVNviews\Automation\MASTER\Projects\ConsoleAppProject\TestRunAttempt.cs:line 193 at Ranorex.Core.Testing.TestSuiteModule.RunInternal(DataContext parentDataContext)


Thank you,
Tipu

omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

Re: Web element is invalid

Post by omayer » Sat Jun 09, 2012 10:39 pm

Ok looks like ATL key gets stuck when Ranroex executing the testcase.
Thank you,
Tipu

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

Re: Web element is invalid

Post by Support Team » Mon Jun 11, 2012 2:01 pm

Hi,

Are you still having the problem with the ALT key or did you solve it?

Regards,
Markus
Ranorex Support Team
.
Image

omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

Re: Web element is invalid

Post by omayer » Mon Jun 11, 2012 7:12 pm

every 3rd test run having ALT key issue, i do have console prompt that prompt to enter url and userid and password, and scenarioid, then hit enter , when it start enterring user id on web then i get webelement not found error, after pressing down couple of time on ALT key then i can rerun the same test w/out any error.
Tipu

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

Re: Web element is invalid

Post by Support Team » Wed Jun 13, 2012 10:38 am

Hi,
omayer wrote:every 3rd test run having ALT key issue, i do have console prompt that prompt to enter url and userid and password, and scenarioid, then hit enter , when it start enterring user id on web then i get webelement not found error, after pressing down couple of time on ALT key then i can rerun the same test w/out any error.
Can you please describe your "Alt key issue" in detail, as we do not have a clue what exact problem you are running into.

Regards,
Tobias
Ranorex Team
.
Image

omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

Re: Web element is invalid

Post by omayer » Fri Jun 15, 2012 12:55 am

ok, finally narrowed down the issue, it was not the ALT key , it was object identification issue after ranorex upgrade to 3.3, after modification of object path , now working as expected. Thank you for looking into it.
Thanks,
Omayer
Tipu