Đã Đóng

Python Selenium Find Main Class of a Subclass

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"

Kĩ năng: Python, Kiến trúc phần mềm, Web Scraping, Selenium Webdriver

Xem nhiều hơn: python selenium by class, python selenium chain find element, find element by class, selenium find element within element, selenium find nested element python, selenium find element by css selector, python selenium find element under element, selenium find element by text, find hi5 class, can find summer class web designing davao city, find ray class singapore, implementation bankaccount class contain accountnumber name balance datejava, find iis metabase number website name, as3 find video class, bank atm main class bank account class, class subclass super project java, creating test suite python selenium, find main class weka, error: could not find or load main class eclipse, error could not find or load main class spring boot intellij

Về Bên Thuê:
( 0 nhận xét ) casablanca, Morocco

ID dự án: #26536566

18 freelancer đang chào giá trung bình $22 cho công việc này

AHMEDAMER232

Hi, There! I'm very confident of your project. I can complete your project in 1 day. 1. My scraping works and experience I have 9 years of experience in web scraping and scraped so many many websites(around 2,000). Thêm

$30 USD trong 1 ngày
(72 Nhận xét)
5.5
Donc310

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

$30 USD trong 1 ngày
(33 Nhận xét)
5.0
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 Thêm

$30 USD trong 7 ngày
(10 Nhận xét)
4.3
DenisGodhani

Hello, ** Automation and web Scrapping expert using Selenium Web driver with Python ** ** I can show you demo of [login to view URL] automation where I am doing auto login and try to put Debit card number, Expiry date and many mo Thêm

$30 USD trong 1 ngày
(12 Nhận xét)
4.0
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. Thêm

$10 USD trong 1 ngày
(8 Nhận xét)
3.4
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 Thêm

$20 USD trong 1 ngày
(18 Nhận xét)
3.3
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 trong 1 ngày
(4 Nhận xét)
3.3
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 Thêm

$50 USD trong 7 ngày
(1 Nhận xét)
2.9
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 Thêm

$25 USD trong 1 ngày
(5 Nhận xét)
2.3
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 Thêm

$25 USD trong 1 ngày
(4 Nhận xét)
1.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 trong 1 ngày
(3 Nhận xét)
1.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 trong 1 ngày
(0 Nhận xét)
0.0
$25 USD trong 1 ngày
(0 Nhận xét)
0.0
vahidtajmir

Hello am vahid , Will be glad to assist you on this . I have scraping experience and can help you and it's my first job here so I do my best please get in touch thanks

$10 USD trong 1 ngày
(0 Nhận xét)
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 trong 1 ngày
(0 Nhận xét)
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 Thêm

$20 USD trong 3 ngày
(0 Nhận xét)
0.0
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 trong 1 ngày
(0 Nhận xét)
0.0
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 Thêm

$10 USD trong 1 ngày
(1 Nhận xét)
0.0