How to getText in Selenium when getText() method is not working | Alternatives to getText() method

How to getText in Selenium when getText() method is not working | Alternatives to getText() method

AJ AUTOMATION

2 года назад

6,434 Просмотров

▶️ In this video, we will see Imp interview question - How to getText in Selenium when getText() method is not working

▶️ We will see some Alternatives to getText() method

======================================
****************AJ AUTOMATION**************
======================================

🔔 Learn automation from basic !! 🔔

✅ Recent Uploads :=
https://youtube.com/playlist?list=PLlc_LrU50tljOnB-LUofJpBkeSMskcQVd

✅ Selenium series videos Playlist :=
https://www.youtube.com/playlist?list=PLlc_LrU50tliMZrnSa0a9geljzCijPDfq

✅ Maven Tool videos playlist :=
https://www.youtube.com/playlist?list=PLlc_LrU50tlgWOrybr-Ppffg6T_1cXeUb

✅ Java Language Concepts :=
https://youtube.com/playlist?list=PLlc_LrU50tliq2RV-1Yhr2IjJ5RqXCQjU

✅TestNG Framework Videos:=
https://www.youtube.com/watch?v=-KEg20O6Mxs&list=PLlc_LrU50tlgMVcdTBSZXt34JavaOEY8G

✅ Become Master in Xpath:=
https://www.youtube.com/watch?v=Wv1hHLhtnzw&list=PLlc_LrU50tlhzCzcfnY2S2vXnkFWorlT-

✅ Protractor series videos playlist :=
https://www.youtube.com/playlist?list=PLlc_LrU50tlim53VdVwAmCnBr8M2x38y8


======================================
**************** Thanks for watching !!**************
======================================


⚡️ Keep Learning...Keep Sharing...Keep Growing. ⚡️

#LearnSeleniumInEasyWay #SeleniumWebDriver

Тэги:

#getext_in_selnium #how_to_gettext_in_selenium #gettext_method_not_working #alternatives_to_gettext_method_in_selenium #different_ways_to_get_text_for_webelement_in_selenium_webdriver #how_to_create_a_generic_method_to_get_text_for_webelement_in_selenium #how_to_get_text_if_gettext()_method_is_not_working_in_selenium #testing_interview_questions_and_answers #automation_testing_interview_questions_and_answers #gettext_in_selenium_webdriver #gettext_using_get_attribute_in_selenium
Ссылки и html тэги не поддерживаются


Комментарии:

@harikrishna3184
@harikrishna3184 - 15.08.2023 04:15

Hi Bro, could you please help me on the below doubt


i have html code like :
<strong class="strongText-----richtext_strong">insurance type</strong>
"Provider"
<strong class="strongText-----richtext_strong">insurance role</strong>
"User"



Here i need the following text , like "Provider"
i tried with multiple solutions like you mentioned , used contains method, following, following sibling, getText(), getAtttribute()....etc
am able to catch the text inside of the Strong tag , but not able to catch the following text.

could you please help me on this ?

Ответить
@classicshub668
@classicshub668 - 02.07.2023 01:45

What if those attributes are not there on that tag

Ответить
@amarasantosh8686
@amarasantosh8686 - 29.06.2023 12:44

Thank you

Ответить
@RaviKumar-vk9ef
@RaviKumar-vk9ef - 11.05.2023 12:57

Thanks a lot this saves lots of time, I have looked into many sites and videos and until I reach this space no help was found. Thanks again :)

Ответить
@supriyaghatol6493
@supriyaghatol6493 - 09.10.2022 18:55

thank a lot ... i am trying it from many hr ..finally got solution..keep it up ...Scbscribed you

Ответить
@radhikagupta8725
@radhikagupta8725 - 18.08.2022 05:43

Saved my day... thanks a lot.Keep posting such useful videos.

Ответить
@swaritshinde6927
@swaritshinde6927 - 24.09.2021 08:30

Nice

Ответить