Question: I have an issue with my autoloader and namespaces.
Below the autoloader

```
<?php
spl_autoload_register( function( $class ) {

    $folder = 'include/';
    $prefix = 'class.';
    $ext    = '.php';

    $fullPath = $folder . $prefix . $class . $ext;

    if( !file_exists( $fullPath ) ){
        print 'Class file not found!';
        return false;
    }

    require_once $fullPath;
});
?>

```

Below the index file

```
<?php
require 'autoload.php';
//use backslash for namespace
$pers = new Person\Person();
?>

```

The file for the class Person is saved in the directory **root->include->Person**
I used the namespace in the class file like this

```
<?php
namespace Person;

class Person{
    function __construct(){
        print 'autoload works';
    }
}
?>

```

If I visit the index file in the browser it returns 'Class file not found'.
Do I use the namespace correctly?

Answer: 
[Check this XHR log here you can find the URL of that data](https://i.stack.imgur.com/oJ1p3.png)

```
url_blue <- "https://www.cronista.com/MercadosOnline/json/getValoresCalculadora.html"

blue <- read_html(url_blue) %>% html_text()

```

Now, I think you can derive fruitful things out of this. Happy Holidays!!
One possible solution could be to use `Rselenium` library.

Below a possible solution:

```
library(RSelenium)
driver <- rsDriver(browser=c("firefox"), port = 4449L)
remote_driver <- driver[["client"]]
remote_driver$navigate('https://www.cronista.com/MercadosOnline/moneda.html?id=ARSB')
compra<-remote_driver$findElement(using = 'css selector', value = ".col-compra")$getElementText()
print(compra)
[1] "COMPRA:\n154,00"
venta<-remote_driver$findElement(using = 'css selector', value = ".col-venta")$getElementText()
print(venta)
[1] "VENTA:\n159,00"

```