Skip to content

Commit

Permalink
chore - adding html method
Browse files Browse the repository at this point in the history
  • Loading branch information
jjpaulo2 committed Aug 3, 2024
1 parent 53903d6 commit a70089b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ web.title
'My website'
```

### Get the HTML source-code from the current page

```python linenums="1"
web.html
```

```python title="Output"
'<html lang="en"><head>\n <meta charset="utf-8">...'
```

### Navigate to an URL

```python linenums="1"
Expand Down
4 changes: 4 additions & 0 deletions fastrpa/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ def domain(self) -> str:
@property
def title(self) -> str:
return self.webdriver.title

@property
def html(self) -> str:
return self.webdriver.page_source

@property
def session(self) -> Session:
Expand Down

0 comments on commit a70089b

Please sign in to comment.