'unable to print a document from selenium IDE

I have tried to print an print a pdf document. setTimeout(function() {window.print();},1000); It works here and open print view but Selenium can not recocgnize the pdf frame. I have tried with all type of command to idenity pdw frame with no success. document.getElementsByTagName('iframe')[0].contentWindow.documentfindElement(By.xpath("//[@id="sidebar"]/div[3]/div/button1").click());* Any idea?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source