import javax.script.ScriptException;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import com.github.markusbernhardt.selenium2library.*;
import com.github.markusbernhardt.selenium2library.utils.WebDriverCache;
public class TransnapJava {
public static void switch_to_canvas() throws ScriptException{
//WebDriver driver = Driver.getDriver();
WebDriver driver = Selenium2Library.getLibraryInstance().getBrowserManagement().getCurrentWebDriver();
driver.findElement(By.xpath("//canvas[@class='upper-canvas ']")).click();