How to get XPath to Amazon product images?

1,002 views
Skip to first unread message

Yevgen Ko

unread,
Dec 11, 2015, 3:36:41 AM12/11/15
to Selenium Users
Is there anyway to get xpath for the element that exist in a source page? I need to get xpath for the first image on Amazon product page. For example this [URL="http://www.amazon.com/dp/B00MBPC9OC"]page[/URL]. Image I need XPATH to is "large":"http://ecx.images-amazon.com/images/I/51ry2Hs%2BBmL.jpg"
Thanks!

PeterJeffreyGale

unread,
Dec 11, 2015, 4:37:39 AM12/11/15
to Selenium Users
The best way is to learn to use XPath for yourself and then decide which is the best expression to write for each particular case. No tool can do that for you.

Yevgen Ko

unread,
Dec 11, 2015, 1:22:28 PM12/11/15
to seleniu...@googlegroups.com
Thank you! Your answer is universal for any XPath-related questions but unfortunately completely different of what I need...

On Fri, Dec 11, 2015 at 1:37 AM, PeterJeffreyGale <peterjef...@hotmail.co.uk> wrote:
The best way is to learn to use XPath for yourself and then decide which is the best expression to write for each particular case. No tool can do that for you.

--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/29_dRw7wqek/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/207768b4-6997-4dcf-bdb1-5bcdec236584%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Best regards!

Eugene Kochkin

PeterJeffreyGale

unread,
Dec 11, 2015, 2:42:28 PM12/11/15
to Selenium Users
Then have you tried googling "how to get xpath"?

Ramesh Sankar

unread,
Dec 12, 2015, 9:37:35 PM12/12/15
to seleniu...@googlegroups.com
Can any one what are the different approaches to handle dynamic elements by using selenium webdriver?
Can any one what are the different approaches to handle dynamic web table to get data/click the link from particular column with based on particular row by using selenium webdriver?

Regards,
Ramesh.S

On Fri, Dec 11, 2015 at 3:07 PM, PeterJeffreyGale <peterjef...@hotmail.co.uk> wrote:
The best way is to learn to use XPath for yourself and then decide which is the best expression to write for each particular case. No tool can do that for you.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.

To post to this group, send email to seleniu...@googlegroups.com.

Panikera Raj

unread,
Dec 13, 2015, 10:22:05 PM12/13/15
to selenium-users

Hi Ramesh,

If possible can you write separate thread for your query. So that it will help you and others who are facing same issue like you.

Thanks

Panikera

Reply all
Reply to author
Forward
0 new messages