Fermé

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"

Compétences : Python, Architecture Logicielle, Web Scraping, Selenium Webdriver

En voir plus : 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

Concernant l'employeur :
( 0 commentaires ) casablanca, Morocco

Nº du projet : #26536566

16 freelances font une offre moyenne de 22 $ pour ce travail

Donc310

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

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(43 Commentaires)
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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(51 Commentaires)
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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(18 Commentaires)
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. ;)

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(10 Commentaires)
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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(12 Commentaires)
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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(13 Commentaires)
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. Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(14 Commentaires)
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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(1 Évaluation)
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 .

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(10 Commentaires)
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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(3 Commentaires)
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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(4 Commentaires)
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

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
shresthsaxena

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

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
jandreaux

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

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(0 Commentaires)
0.0