title: How to disable print option in selenium using selenium using java?
body: <p>How to disable print option in selenium using selenium using java?</p>
  <pre><code>```public void RxPackingList() throws InterruptedException {
  driver.findElement(By.xpath(&quot;//div[@class='menu_icon eye']&quot;)).click();
  driver.findElement(By.xpath(&quot;//a[@href='#/orderlist/orderDetails/298270/']&quot;)).click();
  driver.findElement(By.xpath(&quot;//span[@data-original-title='Invoice &amp; PL']&quot;)).click();
  Thread.sleep(3000);
  WebElement lens1 = driver.findElement(By.xpath(&quot;//a[text()='Packing Lists']&quot;));
  JavascriptExecutor executor = (JavascriptExecutor) driver;
  executor.executeScript(&quot;arguments[0].click();&quot;, lens1);
  </code></pre>
  <p>driver.findElement(By.xpath(&quot;//button[@ng-click='printInvoice()']&quot;)).click();
  driver.findElement(By.xpath(&quot;//button[@ng-click='printInvoice()']&quot;)).click(); ```</p>