I was tasked to check on why Google can't seem to index a client site properly. The site uses a framework given by client's parent company (so we can't use other framework). The framework use frameset for almost every page; the main page is a frameset, and many pages inside the individual frame also use frameset. And those framesets are written to the page using javascript (particulary document.write function).
I know Google bots can index content in framesets, and able to execute some of javascript in a page to get data. But can it properly index the combination of both?