Hi,
I am trying to automate a wedsite and it shows objects when i use Ranorex spy.
I using this code. It is launching notepad and calc, but i when i try to launch IE6 it does not work. Please advice.
using System;
using Ranorex;
namespace Test1
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
Console.WriteLine("Start Ranorex VS2005 sample1");
Application.Start("iexplore.exe");
//Application.Start("notepad.exe");
//Application.Start("calc.exe");
}
}
}
Web page automation
Ranorex can only start an application if the path of it is in the environment variable PATH.
Notepad and calc are in the Windows\System32 directory.
You should add the path of the IE e.g "C:\Program Files\Internet Explorer" to the PATH environment variable as follows (Windows XP):
Ranorex Team
Notepad and calc are in the Windows\System32 directory.
You should add the path of the IE e.g "C:\Program Files\Internet Explorer" to the PATH environment variable as follows (Windows XP):
- Open the System Properties dialog (My Computer->Properties)
- Click the Advanced button
- Click Environment Variables
- Add the IE path to the PATH environment variable
Ranorex Team
Take a look at the automate a web page Sample and dump out all elements of the explorerControl. This is shown in the dumping out the element tree Sample.
For further examples send us more detail about your problem.
Gabor Herget
Ranorex Team
For further examples send us more detail about your problem.
Gabor Herget
Ranorex Team
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Please see following link for further information about web automation with Ranorex:
http://www.ranorex.com/products/ranorex ... sting.html
regards,
Christoph
Ranorex Support Team
http://www.ranorex.com/products/ranorex ... sting.html
regards,
Christoph
Ranorex Support Team
you could use xpath and count the number of table where data are store .when number is know you have to iterate on each table and apply xpath to each cell where data is place .
this need to use the very good ( best) mozilla xpi plug in name web developper ( similar that the ranorex html tool to navigate thrue html hiearchy) that help you to understand how html page is structured even html seem not wellform. so all could be achieve using xpath and rdbms API. Some firefox tool color table limit to help discover repeat structures. this need more code ( enter data in input form , launch button from http server , save html file, apply codec to have xml wellform file, retrieve data , store for each iteration data to another ) .
forget to say that firefox (perhpas ie 7 ) have a xpath editor that let you to know/test which data cell the xpath expression could be view / extract .
xpath is a real language and can support function like those you can find in programming language. regular expression could also be use on all flat file instead xpath which is limited to file that contain tag ( open close).xlink also could be use ....
use this tool ll let ranoorex developper focus of ranorex tool rather than spy tool ( application , web ) . for application think visualstudio have one and some tool specific or not could easy find using search engine to spy the hiearchy of object type/name .
sam
this need to use the very good ( best) mozilla xpi plug in name web developper ( similar that the ranorex html tool to navigate thrue html hiearchy) that help you to understand how html page is structured even html seem not wellform. so all could be achieve using xpath and rdbms API. Some firefox tool color table limit to help discover repeat structures. this need more code ( enter data in input form , launch button from http server , save html file, apply codec to have xml wellform file, retrieve data , store for each iteration data to another ) .
forget to say that firefox (perhpas ie 7 ) have a xpath editor that let you to know/test which data cell the xpath expression could be view / extract .
xpath is a real language and can support function like those you can find in programming language. regular expression could also be use on all flat file instead xpath which is limited to file that contain tag ( open close).xlink also could be use ....
use this tool ll let ranoorex developper focus of ranorex tool rather than spy tool ( application , web ) . for application think visualstudio have one and some tool specific or not could easy find using search engine to spy the hiearchy of object type/name .
sam