Python Selenium Find Main Class of a Subclass

Stängt Publicerat 3 år sedan Betalades vid leverans
Stängt 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"

Python Programvaruarkitektur Webbskrapning Selenium Webdriver

Projekt-id: #26536566

About the project

16 offerter Distansprojekt Aktivt 3 år sedan

16 frilansare har lagt bud på i genomsnitt $22 för det här jobbet

Donc310

Hello am Chris , Will be glad to assist you on this . please get in touch thanks >>>>>>>>>>>>>>>>>>>>

$30 USD inom 1 dag
(43 omdömen)
5.3
suryanshsingh55

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

$20 USD inom 1 dag
(51 omdömen)
4.8
PKonstiantyn

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

$30 USD inom 7 dagar
(18 omdömen)
4.9
shashankmistry31

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. ;)

$10 USD inom 1 dag
(10 omdömen)
4.5
an6727

Hello, I am a Web Scraping Expert. I can easily help you get the class element. I have read your description thoroughly. I am fully capable of doing this project in the given time. I have done similar projects in the p Mer

$25 USD inom 1 dag
(13 omdömen)
3.9
parthjaviya098

* 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

$10 USD inom 1 dag
(14 omdömen)
4.1
vivekautomation2

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

$50 USD inom 7 dagar
(1 omdöme)
2.9
ahmedecw123

i have an experience with selenium more than five years . i can start work today . i hope to give me this chance thank you .

$20 USD inom 1 dag
(10 omdömen)
2.9
hardikpurohit26

.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

$10 USD inom 1 dag
(3 omdömen)
2.5
HamzaPProgrammer

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

$25 USD inom 1 dag
(4 omdömen)
1.9
chrskng

Hi, I'm willing to do this job, Im expert in python selenium and done several works with a dynamic selector. Thank you

$20 USD inom 1 dag
(0 omdömen)
0.0
shresthsaxena

I can do this work because i m kinda expert in python selenium. I made so many such projects before.

$20 USD inom 1 dag
(0 omdömen)
0.0
jandreaux

Hi, I am an expert in Selenium. You problem can be solved quickly. Please share the details on the chat. Thanks.

$10 USD inom 1 dag
(0 omdömen)
0.0
aryanraj001

• 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

$20 USD inom 3 dagar
(0 omdömen)
0.0