Xpath is not working..

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Xpath is not working..

javelearner
Hey guys I am having trouble to run this Xpath.. is there something wrong with following formula
Thanks!

//input [@class= ‘input_fields  piereg_validate[required] input_fields’]


--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/2fdfd6f9-b3b9-40a2-8b2c-1420b209af41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Xpath is not working..

Devotional Videos
did you try using //input[contain(@class,'input_fields')]   ?

On Thu, Feb 1, 2018 at 8:48 AM, <[hidden email]> wrote:
Hey guys I am having trouble to run this Xpath.. is there something wrong with following formula
Thanks!

//input [@class= ‘input_fields  piereg_validate[required] input_fields’]


--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/2fdfd6f9-b3b9-40a2-8b2c-1420b209af41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAN%3DmKSGo72hfazitY9v_wPkVT4YUJp91X9%2Bk2jiEokcNfqdZoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Xpath is not working..

Aleksandr Melnikov
Have you tried testing in chrome console? $x(<your xpath here>)

-Aleksandr Melnikov

On Thu, Feb 1, 2018 at 2:08 AM, Gokul Krishna <[hidden email]> wrote:
did you try using //input[contain(@class,'input_fields')]   ?

On Thu, Feb 1, 2018 at 8:48 AM, <[hidden email]> wrote:
Hey guys I am having trouble to run this Xpath.. is there something wrong with following formula
Thanks!

//input [@class= ‘input_fields  piereg_validate[required] input_fields’]


--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/2fdfd6f9-b3b9-40a2-8b2c-1420b209af41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAN%3DmKSGo72hfazitY9v_wPkVT4YUJp91X9%2Bk2jiEokcNfqdZoA%40mail.gmail.com.

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

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAB8vsatNJxxsKsXN6JHJpmF2XNNXFsFpvscg8zcoVv-UcYXQ%2Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Xpath is not working..

riponalwasim
In reply to this post by javelearner
Try with another attribute instead of class

On Thu, Feb 1, 2018 at 9:18 AM, <[hidden email]> wrote:
Hey guys I am having trouble to run this Xpath.. is there something wrong with following formula
Thanks!

//input [@class= ‘input_fields  piereg_validate[required] input_fields’]


--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/2fdfd6f9-b3b9-40a2-8b2c-1420b209af41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CADrmqWV8mpWB%2BVrtGb%2Bhe0RMSY5OtSpLfj8wdTzHM44L_c1x6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Xpath is not working..

riponalwasim
In reply to this post by javelearner
You can try the following way?

driver.findElement(By.className("input_fields  piereg_validate[required] input_fields")).click();

On Thu, Feb 1, 2018 at 9:18 AM, <[hidden email]> wrote:
Hey guys I am having trouble to run this Xpath.. is there something wrong with following formula
Thanks!

//input [@class= ‘input_fields  piereg_validate[required] input_fields’]


--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/2fdfd6f9-b3b9-40a2-8b2c-1420b209af41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CADrmqWWXg72miB2shmCnS4nghYrOaH88Uc7h1ORS4LcZb7O19A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.