Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

How to get Element id or Xpath in selenium rc

View previous topic View next topic Go down

How to get Element id or Xpath in selenium rc

Post by MohamedAzharudeen on Wed Nov 02, 2011 5:10 pm

Hi All,

Am new to selenium rc, i need to know how to get xpath or css selectors for an Element, i tried using xpather and i passed xpath value for username textfield in gmail site as id('Email'),

Element not found Error is displayed, anyone help me to find the xpath for Element id...


Regards,
Azhar

MohamedAzharudeen
Active particpant
Active particpant

Posts : 16
Join date : 2011-10-19

Back to top Go down

Re: How to get Element id or Xpath in selenium rc

Post by faramka on Wed Nov 02, 2011 5:39 pm

If you want to determine XPath of an element, you can use Firebug to Firefox.
For username textfield in Gmail I get:
Code:
//*[@id="Email"]
You can also write:
Code:
//input[@id="Email"]

faramka
Professional
Professional

Posts : 143
Join date : 2011-09-15
Location : Poland

Back to top Go down

Re: How to get Element id or Xpath in selenium rc

Post by MohamedAzharudeen on Wed Nov 02, 2011 7:05 pm

Thanks for your Reply faramka...

it's helps me to find the xpath of an Element...

MohamedAzharudeen
Active particpant
Active particpant

Posts : 16
Join date : 2011-10-19

Back to top Go down

Re: How to get Element id or Xpath in selenium rc

Post by include85 on Sun Nov 06, 2011 12:32 am

In firefox there is firepath another plugin very good for to take xpath element. Wink
avatar
include85
Regular Participant
Regular Participant

Posts : 27
Join date : 2011-09-22
Age : 32
Location : Italia, Sicily

Back to top Go down

Re: How to get Element id or Xpath in selenium rc

Post by JoffreMota on Tue Nov 08, 2011 7:10 pm

Another good firefox add-on is 'XPath Checker'.

JoffreMota

Posts : 3
Join date : 2011-11-01

Back to top Go down

Re: How to get Element id or Xpath in selenium rc

Post by lalkota on Tue Dec 06, 2011 5:29 pm


lalkota
Active particpant
Active particpant

Posts : 21
Join date : 2011-06-02

Back to top Go down

Re: How to get Element id or Xpath in selenium rc

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum