Share
Go down
navi_thatikonda
Posts : 1
Join date : 2009-09-23

how to get the href or url of the web page with selenium ide

on Sat Oct 10, 2009 7:18 am
Hi friends,


My question is:


1. I opened google.com (my url is google.com)


2. just I typed "selenium ide" and enter


3. Now am seeing url as "http://www.google.com/#hl=en&source=hp&q=selenium+ide&btnG=Google+Search&aq=f&aqi=g10&oq=selenium+ide&fp=a70abe15f561671b"


I want to store above url in a variable.


is it possible to do with Xpath or dom? if possible how ?



How I have to do this ??????
avatar
Advisor
------------------------
------------------------
Posts : 383
Join date : 2009-07-30
Location : India
http://seleniumforum.forumotion.net

Re: how to get the href or url of the web page with selenium ide

on Sat Oct 10, 2009 12:18 pm
Hi,

use the following commands and you will get, what you wanting.


  • [info] Executing: |storeLocation | variablename | |
  • [info] Executing: |type | q | ${variablename} |
Best of luck

bye
Back to top
Permissions in this forum:
You cannot reply to topics in this forum