Ranorex

Web page automation

 
Post new topic   Reply to topic    Ranorex Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
dxs



Joined: 01 Nov 2006
Posts: 2

PostPosted: Wed Nov 01, 2006 10:15 pm    Post subject: Web page automation
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");
}
}
}
_________________
-Deepak
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 05 Jul 2006
Posts: 351

PostPosted: Thu Nov 02, 2006 10:02 am    Post subject:
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):

  • Open the System Properties dialog (My Computer->Properties)
  • Click the Advanced button
  • Click Environment Variables
  • Add the IE path to the PATH environment variable
Gabor Herget
Ranorex Team
Back to top
View user's profile Send private message Visit poster's website
dxs



Joined: 01 Nov 2006
Posts: 2

PostPosted: Thu Nov 02, 2006 7:13 pm    Post subject:
Thanks for your reply it worked. I also have another question about data verification from the webpages. Can you please post some emaples how to extract data from a table.

Thanks.
_________________
-Deepak
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 05 Jul 2006
Posts: 351

PostPosted: Fri Nov 03, 2006 10:40 am    Post subject:
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
Back to top
View user's profile Send private message Visit poster's website
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 343

PostPosted: Tue Apr 08, 2008 8:19 am    Post subject:
Please see following link for further information about web automation with Ranorex:

http://www.ranorex.com/products/ranorex-web-testing.html

regards,

Christoph
Ranorex Support Team
Back to top
View user's profile Send private message Visit poster's website
sam



Joined: 04 Oct 2007
Posts: 8

PostPosted: Sun Jun 15, 2008 12:45 am    Post subject:
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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> General Questions All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum