Question: Is it possible to declare a variable from another variable that was already declared in a function?

Example of what I am expecting below..

```
CREATE OR REPLACE FUNCTION insertRecord
(
    a varchar (100),
    b varchar(100),
    c varchar(100)

) 
RETURNS TEXT AS $$

DECLARE

orgId := (select id from org)

projectId := select id from project where orgId = orgId

BEGIN

return projectId;

END;
$$ LANGUAGE plpgsql;

```

Answer: 
Ok, so the solution is a *bit weird*.

I moved the `Chromedriver` binary from `/opt/google/` (where `Google Chrome` is installed itself) to `/opt/`, updated the symlink and it's working now!

Compared to the question itself, these two lines of code solve the issue:

```
sudo mv /opt/google/chromedriver /opt/
sudo ln -fs /opt/chromedriver /usr/local/bin/chromedriver

```

And now I am able to run the following Python code:

```
from selenium import webdriver

browser = webdriver.Chrome()
browser.get('http://www.google.com')

```

Chrome starts and everything.

The following line on the [old Selenium docs page](https://code.google.com/p/selenium/wiki/ChromeDriver) inspired me to check and eventually to change the `Chromedriver` location:

> 
> For Linux systems, the ChromeDriver expects /usr/bin/google-chrome to
>  be a symlink to the actual Chrome binary.
> 
> 
>
I don't know if this is the only issue you're having but chromedriver doesn't like "www.google.com", however it is fine with "<http://www.google.com>"