how can i get the current dom after javascripts made changes to the html source with selenium in java? -


I have read many posts about this, but I have not found the solution yet. Maybe I am so dumb, in that case, please tell me that I like it: D

This is my first question which I post here, so be good: D

My problem is, I use Selenium to open some websites and click some buttons. After that, I get the source of the page and I should parse it for some content with Jessup. This works, but the pages where I do not get the current domain, but the page was sent as a source by the server before. I can click on the stuff added by Javascript, so Selenium knows that they are there. But I can not find the whole HTML code. So basically, my question is:

How can I get with Selenium, when I right click on the page and click on viewing the page source? Because what I am seeing, when I execute the getpagesource () method, what do I get from then on

People answered some questions: Like I have to wait, I have to execute javascript by myself. .. but it does not help me to be honest. The button is already (because javascript has already been added), I can navigate with selenium and click on it when I load the pager, there is no waiting, already processed Javascript, the generated HTML code is already in its place. And please be patient with me when I got some top. IM is not a web developer, I just started working on a project and now the IM is stuck. I came to know how to use JSUP, I believe that I have to use Selenium (BTW, I have to use Firefox, it should be used for my purposes) and I want to see that when I execute the code) , Then I read about Javascript, but now I really do not have a clue how to proceed.

I have not added any code, because basically I use simple known methods only to get the page, click some button and get pagers. If it helps, then I can add code.

Thanks in advance


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -