title: Access java variable inside selenium webdriver javascriptexecutor
body: <p>I have an int variable in java like</p>
  
  <pre><code>int height = 10;
  </code></pre>
  
  <p>I want to use this java int type variable inside javascriptexecutor of selenium webdriver.
  I have tried in some ways but it shows error all time</p>
  
  <pre><code>JavascriptExecutor jse = (JavascriptExecutor)driver;
  jse.executeScript("var test = '${height}';")
  </code></pre>
  
  <p>or like this </p>
  
  <pre><code>jse.executeScript("var test = '&lt;%=height%&gt;';"
  </code></pre>
  
  <p>What is the way to use this int type variable inside javascriptexecutor of selenium webdriver?</p>