Закрыт

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"

Навыки: Python, Архитектура ПО, Веб-скрейпинг, Selenium Webdriver

Показать больше: 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

О работодателе:
( 0 отзыв(-а, -ов) ) casablanca, Morocco

ID проекта: #26536566

16 фрилансеров(-а) готовы выполнить эту работу в среднем за $22

Donc310

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

$30 USD за 1 день
(43 отзывов(-а))
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 Больше

$20 USD за 1 день
(51 отзывов(-а))
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 Больше

$30 USD за 7 дней(-я)
(18 отзывов(-а))
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 за 1 день
(10 отзывов(-а))
4.5
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 Больше

$30 USD за 1 день
(12 отзывов(-а))
4.1
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 Больше

$25 USD за 1 день
(13 отзывов(-а))
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. Больше

$10 USD за 1 день
(14 отзывов(-а))
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 Больше

$50 USD за 7 дней(-я)
(1 отзыв)
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 за 1 день
(10 отзывов(-а))
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 Больше

$10 USD за 1 день
(3 отзывов(-а))
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 Больше

$25 USD за 1 день
(4 отзывов(-а))
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 за 1 день
(0 отзывов(-а))
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 за 1 день
(0 отзывов(-а))
0.0
$25 USD за 1 день
(0 отзывов(-а))
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 за 1 день
(0 отзывов(-а))
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 Больше

$20 USD за 3 дней(-я)
(0 отзывов(-а))
0.0