# Grabbing Logo Text From E-Commerce Website

Let's say we want to locate the logo element of this test e-commerce website (<https://www.demoblaze.com/>) and grab the "Product Store" text:

<figure><img src="https://4075364621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdeHCa61FE2AVI1l47qYa%2Fuploads%2FVs7PXPB8ltouwYPv8zu2%2Fecommercewebsitetest.PNG?alt=media&#x26;token=2c505902-7dd7-4432-9245-a6849f04d6f9" alt=""><figcaption></figcaption></figure>

First, let's import Simple Selenium & initiate the webdriver with our desired startup options:

```python
from simpleseleniumwrapper import WebDriver as SimpleSelenium

#Initiate & start the Chrome webdriver. Data will be saved to the "myAwesomeProfile" profile.
driver=SimpleSelenium("chrome",maximized=True,save_profile=True,profile_name="myAwesomeProfile",save_logs_in_file=True)
```

Visiting the target website is simple:

```python
#Visit the target website
driver.visit('https://www.demoblaze.com/')
```

Now visit the target website on your normal web browser, right click the logo element, & click "inspect":

<figure><img src="https://4075364621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdeHCa61FE2AVI1l47qYa%2Fuploads%2FJSF1sbCbAKvuriZJgSPC%2Finspectinglogo.PNG?alt=media&#x26;token=81d9626b-ddc7-44a1-887a-d2c69695f2a2" alt=""><figcaption></figcaption></figure>

This should open the developer tools console. Get familiar with this, since you'll be using dev-tools a lot:

<figure><img src="https://4075364621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdeHCa61FE2AVI1l47qYa%2Fuploads%2FUNnv4i9Qw93AuYnuDIu1%2Fhighlightinglogo.PNG?alt=media&#x26;token=e78a0231-711b-4ba3-9f55-36b379d74440" alt=""><figcaption></figcaption></figure>

Looking at the \<a> tag, we need to find a reliable attribute to consistently identify this product logo element. The class attribute looks promising, as it has a unique & human-readable value ("navbar-brand"), which is unlikely to change.

<figure><img src="https://4075364621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdeHCa61FE2AVI1l47qYa%2Fuploads%2FV9WGwyNFnFoXAPXf7dNQ%2Fimage.png?alt=media&#x26;token=c6b5559c-8982-4748-a8e8-753e65bc12e4" alt=""><figcaption></figcaption></figure>

Now with Simple Selenium, you can use this class name ("navbar-brand") to locate the logo element:

```python
#Find the element by ID (nava)
logo_element=driver.by_class("navbar-brand")
```

And finally, let's grab the text inside this element:

```python
#Grab text inside this element
print(logo_element.text()) #Returns "PRODUCT STORE"
```

This is the general procedure for reliably locating elements on any webpage. We'll cover more complex examples in the next pages.
