Discussion:
Locate element by partial class name
Santosh Hulisandra Srikanta
2013-09-26 13:36:25 UTC
Permalink
How to locate elements by partial class name in web-driver.
I have list html elements whose name starts with "selectItem".
So i want list all these elements using drive.find_elements_by_class_name().
Please let me know how to do this.

I found regex can be used for Xpath but i need to use regex for class names,
Please help me out here


Regards
Santosh
--
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-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to selenium-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CA%2B03-899FdyMhi4pa-iQfKzDkGWf5QcKZdhH3638SywFSVmbpg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
praveenreddy narala
2013-09-26 14:35:25 UTC
Permalink
Santosh,
Please go through this link, I think it might be helpfull for you :)


http://stackoverflow.com/questions/11961178/finding-an-element-by-partial-id-with-selenium-in-c-sharp
--
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-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to selenium-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/f80f9a41-0b1c-4b4b-92de-244f9fcd1c3d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
s***@public.gmane.org
2013-09-27 08:23:29 UTC
Permalink
Post by Santosh Hulisandra Srikanta
How to locate elements by partial class name in web-driver.
I have list html elements whose name starts with "selectItem".
So i want list all these elements
using drive.find_elements_by_class_name().
Please let me know how to do this.
I found regex can be used for Xpath but i need to use regex for class names,
Please help me out here
Regards
Santosh
--
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-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to selenium-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/448cf032-94bd-4493-8bd8-87c7f46dcf1c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Santosh Hulisandra Srikanta
2013-09-27 12:43:43 UTC
Permalink
Cant i use something like drive.find_elements_by_class_name() with some
regex instead of CSS or class name
Post by Santosh Hulisandra Srikanta
Post by Santosh Hulisandra Srikanta
How to locate elements by partial class name in web-driver.
I have list html elements whose name starts with "selectItem".
So i want list all these elements using drive.find_elements_by_**
class_name().
Please let me know how to do this.
I found regex can be used for Xpath but i need to use regex for class names,
Please help me out here
Regards
Santosh
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/448cf032-94bd-4493-8bd8-87c7f46dcf1c%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.
--
ಎಲ್ಲಟಊರೂ ಇರು ಎಂಀಟಊರು ಇರು
ಎಂಊೆಂಊಿಗೂ ಚೀ ಕಚ್ಚಡವಟಗಿರು
ಕಚ್ಚಡವೇ ಞಀ್ಯ ಕಚ್ಚಡವೇ ಚಿಀ್ಯ

/ ಞಂಀೋಷ್
--
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-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to selenium-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CA%2B03-8-Ru8jEJ35WXrCWG3ZNZFacELbYc-JphU9q9LxTLeuU6Q%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
Continue reading on narkive:
Loading...