I am automating one Project in my organization and came across one issue. I am very new to automation and selenium.
Issue that i am facing: not able to capture the text inside the dd tag in the html
The Highlighted text in the UI is what I want to capture and adjacent to it is the html code
Also Attaching the script I am writing And the Console Output
I am able to fetch the value from the dt tag but not from dd tag
Can Somebody help me with this?
dtshouldn't the XPaths look the same except for
implicitWaitcall before the
getText()- I guess you expect the data to be present after some time. ImplicitWait waits only for the element to be present. Can you change it to a
sleep()and check whether
getText()returns proper value?