Question: I'm trying to set the value of a variable to the result of a simple select statement.

```
var datevar varchar(10);
exec :datevar := SELECT trunc(sysdate) from dual;
select :datevar ASOF from dual

```

I get the error message below. I'm working with Oracle 12c

[![enter image description here](https://i.stack.imgur.com/lgUQt.jpg)](https://i.stack.imgur.com/lgUQt.jpg)

How can I get this to work without using PL/SQL? Thanks

Answer: 
You can create shuch kind of method, and pass argument text to click on the needed element

```
public void clickOnButton(String text){
       WebElement button = driver.findElement(By.xpath("//label[text() = '"+text+"']")); 
       button.click();
      }

```
Use `|` in xpath to perform OR operation e.g.

```
@FindBy(how = How.XPATH, using = "//label[text()='Mr'] | //label[text()='Mrs'] | //label[text()='Miss']" )
public WebElement prefix;

```

This will return your element if any condition satisfy out of 3.