I am trying to navigate pages using the selenium web driver, and I am stuck at one point please refer to the image where I showed the output of the validation element for this page I'm working on.

but in the page source (which I saw in the browser, and also using Jsoup) it looks like this:
<html> <head> </head> <frameset rows="75,60,*" resize="no" SCROLLING="NO" name=main border="0"> <frame src="/frame/topnewprof.shtml" name="top" SCROLLING=NO> <frame src="/frame/blank.html" name="menu" SCROLLING=NO > <frame src="/itrade/user/welcome.exe?action=chk_seckey_stat" name="body" SCROLLING=AUTO> </frameset> <body> </BODY></html>
why is this a mismatch? and the yellow material that stands out in the image above has the element that I need! how do i get there using selenium ?? I know that we can go to the iframe using selenium switchTo().frame() , but even if I get into any of the three frames, as shown above, in the source information of the page, I canβt find the information I need, can is it to be achieved? is it possible?
UPDATE: Hi guys! I found a solution to this and now that the heap intersects. in fact, what happened when I tried to getPageSource, selenium actually received the frame source of one of the frames ("body" - as mentioned above), I accidentally realized this. Then, to solve my problem, I wanted to go back one step from where I was from, so I can select this iframe = (name = "top"), which was the target where I had the content as shown in the image. To achieve this, I used the Selenium defaultContent () function and returned one step with switchTO (). frame () went into the frame of my desire and completed the task
hope this helps! and thanks to everyone who tried to help me with this.
source share