Search found 13 matches
- Wed May 18, 2011 9:41 pm
- Forum: Automation Tools
- Topic: How to find and close web browser?
- Replies: 13
- Views: 11118
Re: How to find and close web browser?
Thanks Ciege - It works like magic although both the code below do the trick. not sure which one is better than the other. IList<Ranorex.WebDocument> AllDoms = Host.Local.FindDescendants<Ranorex.WebDocument>(); if (AllDoms.Count >=1) { foreach (WebDocument myDom in AllDoms) { myDom.Close(); } } or I...
- Tue May 17, 2011 6:12 pm
- Forum: Automation Tools
- Topic: How to find and close web browser?
- Replies: 13
- Views: 11118
Re: How to find and close web browser?
Perfect, I will try this and let you know.
Thanks
Anu
(Still a newbie)
Thanks
Anu
(Still a newbie)
- Tue May 17, 2011 5:17 pm
- Forum: Automation Tools
- Topic: How to find and close web browser?
- Replies: 13
- Views: 11118
Re: How to find and close web browser?
Yes, So when i execute my script I want my script to be smart enough to close all open browsers(irrespective of name) first and then open a new browser and work on it. If there is any existing browser Ranorex opens a new tab and then gets confused with multiple browsers open. Thanks for your reply. ...
- Tue May 17, 2011 5:10 pm
- Forum: Object Identification and Technologies
- Topic: Find number of links in a frame
- Replies: 12
- Views: 4072
Re: Find number of links in a frame
Ciege -I have read it to an extent. But it does not answer my question. I will try to be clearer. So the way my webapp is designed is very weirdly different. Its all frameset inside frameset inside frame and the objects in the app are not consistently defined. Some objects are recognized by Id, some...
- Tue May 17, 2011 4:41 pm
- Forum: Automation Tools
- Topic: How to find and close web browser?
- Replies: 13
- Views: 11118
Re: How to find and close web browser?
Thank you Ciege, but to search based on a <Ilist> I need to provide a webDocument with domain information. When there is a browser open, then it works fine. I have it implemented it already. The problem is when there is no browser open then Ranorex throws an error. "NO element found for path 'dom......
- Tue May 17, 2011 4:01 pm
- Forum: Automation Tools
- Topic: How to find and close web browser?
- Replies: 13
- Views: 11118
Re: How to find and close web browser?
If I need to close all open browsers, irrespective of the url or domain then what can I do?
- Mon May 16, 2011 8:37 pm
- Forum: Object Identification and Technologies
- Topic: Find number of links in a frame
- Replies: 12
- Views: 4072
Re: Find number of links in a frame
My Code is frame inside frame , inside frame and I did this and it worked. webDocument frameset = "/dom[@domain='mydomain']"; IList<Ranorex.FrameTag> allframes = mymainframeset.FindDescendants<FrameTag>(); foreach (FramesetTag mymainframeset in allframes { //look for another frameset or frame, depen...
- Fri May 13, 2011 8:19 pm
- Forum: Object Identification and Technologies
- Topic: A website using frame and webspy found webellement not worki
- Replies: 5
- Views: 3392
Re: A website using frame and webspy found webellement not worki
Michael, Can you elaborate this further? I have a similar situation of my webapp being frames inside frames. A typical object in a spy is like this.. /dom[@domain='mydomain']/frameset/frameset[@id='framename']/frameset[2]/frame[@name=framename2]/body/div/div[6]/tablr/tbody/tr[3]/td[@id='la_01'] If I...
- Fri May 13, 2011 3:05 pm
- Forum: Object Identification and Technologies
- Topic: Find number of links in a frame
- Replies: 12
- Views: 4072
Re: Find number of links in a frame
WebDocument menupath = "/dom[@domain='<IPADDRESS>']/frameset/frameset[@id='contentframeset']/frame[@name='snb']"; IList<Ranorex.ATag> AllAtags = menupath.FindDescendants<Ranorex.ATag>(); If this is what you mean, than I already tried this and I get an error that the "element does not support the req...
- Thu May 12, 2011 10:37 pm
- Forum: Object Identification and Technologies
- Topic: Find number of links in a frame
- Replies: 12
- Views: 4072
Re: Find number of links in a frame
Hi Ciege, Today I have come across a scenario where your suggestion might be useful. But the webpage I am working on is a multi framed app, and if I provide a WebDocument it would give me all the links of the page which is about 327 links. I want the links from a particular frame. For example this i...
- Thu May 12, 2011 9:54 pm
- Forum: Automation API
- Topic: Repository items as parameters
- Replies: 1
- Views: 2342
Repository items as parameters
I have a list of menu items in my web browser and each item has sub menus. I want to create a function where I want to tell the user defined method to click on the menuname and then click on the submenu name just by passing parameters to the function like as follows: public void selectmenutab (strin...
- Wed May 11, 2011 3:39 pm
- Forum: Object Identification and Technologies
- Topic: Find number of links in a frame
- Replies: 12
- Views: 4072
Re: Find number of links in a frame
Hi Ciege,
Thank you for your reply. I think I found another way to achieve my criteria. I could just find my link via findsingle and click on it. I didnt have to use this one for now.
Anu
Thank you for your reply. I think I found another way to achieve my criteria. I could just find my link via findsingle and click on it. I didnt have to use this one for now.
Anu
- Tue May 10, 2011 5:12 pm
- Forum: Object Identification and Technologies
- Topic: Find number of links in a frame
- Replies: 12
- Views: 4072
Find number of links in a frame
HOw can I find the number of links in a frame?
Newbie to Ranorex
Newbie to Ranorex