Question: There are at least 2 more questions on the platform but none of their answers helped me.

I just imported:

```
from selenium.common.exceptions import NoSuchElementException

```

then used:

```
if Newest_tab_button:
    print('element found')
else:
    print('not found')

```

or

```
try:
    wait = WebDriverWait(driver, 15)
    Newest_tab_button = wait.until(EC.visibility_of_element_located((By.XPATH, '//*[@text="NEWEST"]//ancestor::*[contains(@resource-id, "itemContainer")]')))
except NoSuchElementException:
    print('Element not found')

```

Nothing worked, still got the:

```
selenium.common.exceptions.TimeoutException: Message: 

```

Can anyone help me with that? Thanks in advance.

Answer: 
I'm using Nginx (not Apache like you) but ran into a similar issue with GD. I got **GD running with jpg, png and webp** by using the following lines:

```
FROM php:8.0-fpm-alpine

# Install dependencies for GD and install GD with support for jpeg, png webp and freetype
# Info about installing GD in PHP https://www.php.net/manual/en/image.installation.php
RUN apk add --no-cache \
        libjpeg-turbo-dev \
        libpng-dev \
        libwebp-dev \
        freetype-dev

# As of PHP 7.4 we don't need to add --with-png
RUN docker-php-ext-configure gd --with-jpeg --with-webp --with-freetype
RUN docker-php-ext-install gd

```

Looking at your `RUN apt-get` statement, I noticed that you are using **another libjpeg library**: `libjpeg62-turbo-dev \`. Could you check if that is the correct version?
And/or try to change the name to `libjpeg-turbo-dev \` (**without the 62** in the name).
```
FROM php:8.1-fpm

RUN apt-get update && apt-get install -y \
    libjpeg-dev \
    libjpeg62-turbo-dev \
    libpng-dev 

RUN docker-php-ext-configure gd --with-freetype --with-jpeg 

RUN docker-php-ext-install -j$(nproc) gd

```