Тэги:
#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Комментарии:
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 ?
What if those attributes are not there on that tag
ОтветитьThank you
Ответить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 :)
Ответитьthank a lot ... i am trying it from many hr ..finally got solution..keep it up ...Scbscribed you
ОтветитьSaved my day... thanks a lot.Keep posting such useful videos.
ОтветитьNice
Ответить