Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara

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