Python Selenium Find Main Class of a Subclass
$10-30 USD
Betalades vid leverans
I'm trying to find elements on a webpage :
The webpage contains lots of subclasses "_4bl9" or "_4bl7" and both of them have the same main class "_3qn7 _61-3 _2fyh _3qnf"
What i'm trying to do, is to find the main class "_3qn7 _61-3 _2fyh _3qnf" of this subclasses "_4bl9"
Here an example of the webpage:
<div class="_3qn7 _61-3 _2fyh _3qnf">
<section>
<div class="clearfix _ikh">
<div class="_4bl9">
<div class="_3qn7 _61-3 _2fyh _3qnf">
<section>
<div class="clearfix _ikh">
<div class="_4bl7">
<div class="_3qn7 _61-3 _2fyh _3qnf">
<section>
<div class="clearfix _ikh">
<div class="_4bl9">
This is my actual code :
test = driver.find_elements_by_class_name("_4bl9")
print(len(test))
Output :
2
Now i want to identify the exact class="_3qn7 _61-3 _2fyh _3qnf" of the two elements "_4bl9"
Projekt-id: #26536566
About the project
16 frilansare har lagt bud på i genomsnitt $22 för det här jobbet
Hello am Chris , Will be glad to assist you on this . please get in touch thanks >>>>>>>>>>>>>>>>>>>>
hello sir hope you doing well i have read the project requirement and can do it in minimum time possible. i have made tons of crawler to scrape data from websites like CNBC,FT,yellow,Bloomberg,fb,insta and many more Mer
Hello! I have read your description and understand your idea Very interesting in your project”Contemplation” Web scrapping is my favorite skill. I did so many scrapping with python selenium, beautiful soap and panda. I Mer
Use //parent::div to resolve the issue at the end of the xpath. award in case you are still facing an issue/want to tip me. ;)
* Amazon, whatsapp and telegram web automation project completed successfully with client satisfaction and full time available * Hello, l have read your requirements and I can help you to find main class. Mer
Hello, I have 7 years of rich experience in Test automation and Functional testing with a demanding agile environment. Also, I have extensive experience in website/mobile app and API testing. I carry iPhone and Andro Mer
i have an experience with selenium more than five years . i can start work today . i hope to give me this chance thank you .
.parent is used to find main class of sub class. Like this-- Main1 = driver.find_elements_by_class_name("_4bl9")[0].parent Main2 = driver.find_elements_by_class_name("_4bl9")[1].parent If you find it useful, just messa Mer
Hello there, I read your proposal, so you want to find the main class _3qn7 _61-3 _2fyh _3qnf of the subclasses _4bl9. We can combine nth-child selector and class searches. I can help you to get this done as soon as po Mer
Hi, I'm willing to do this job, Im expert in python selenium and done several works with a dynamic selector. Thank you
I can do this work because i m kinda expert in python selenium. I made so many such projects before.
Hi, I am an expert in Selenium. You problem can be solved quickly. Please share the details on the chat. Thanks.
• Having 10 Years of Experience in Manual Testing on Travel, Banking, Telecom , Payments ,Finance, E-Commerce Domain • Having 6 yrs of Experience in using Mobile Automation using Appium for web and Native app. • Exper Mer