Skip to content

Commit 0b4b361

Browse files
committed
#275 - additional table(n, csv_file) function
1 parent 6675650 commit 0b4b361

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# RPA for Python :snake:
22

3-
[**v1.39**](https://github.com/tebelorg/RPA-Python/releases) | [**Use Cases**](#use-cases) | [**API Reference**](#api-reference) | [**About & Credits**](#about--credits) | [**PyCon Video**](https://www.youtube.com/watch?v=F2aQKWx_EAE) | [**Run on Cloud**](https://colab.research.google.com/drive/13bQO6G_hzE1teX35a3NZ4T5K-ICFFdB5?usp=sharing) | [**Telegram Chat**](https://t.me/rpa_chat)
3+
[**v1.40**](https://github.com/tebelorg/RPA-Python/releases) | [**Use Cases**](#use-cases) | [**API Reference**](#api-reference) | [**About & Credits**](#about--credits) | [**PyCon Video**](https://www.youtube.com/watch?v=F2aQKWx_EAE) | [**Run on Cloud**](https://colab.research.google.com/drive/13bQO6G_hzE1teX35a3NZ4T5K-ICFFdB5?usp=sharing) | [**Telegram Chat**](https://t.me/rpa_chat)
44

55
>_This tool was previously known as TagUI for Python. [More details](https://github.com/tebelorg/RPA-Python/issues/100) on the name change, which is backward compatible so existing scripts written with `import tagui as t` and `t.function()` will still work._
66
@@ -132,7 +132,7 @@ Function|Parameters|Purpose
132132
keyboard()|keys_and_modifiers (using visual automation)|send keystrokes to screen
133133
mouse()|'down' or 'up' (using visual automation)|send mouse event to screen
134134
wait()|delay_in_seconds (default 5 seconds)|explicitly wait for some time
135-
table()|element_identifier (XPath only), filename_to_save|save basic HTML table to CSV
135+
table()|table number or XPath, filename_to_save|save webpage table to CSV
136136
upload()|element_identifier (CSS only), filename_to_upload|upload file to web element
137137
download()|download_url, filename_to_save(optional)|download from URL to file
138138
unzip()|file_to_unzip, unzip_location (optional)|unzip zip file to specified location

Diff for: rpa_package/rpa.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Apache License 2.0, Copyright 2019 Tebel.Automation Private Limited
33
# https://github.com/tebelorg/RPA-Python/blob/master/LICENSE.txt
44
__author__ = 'Ken Soh <[email protected]>'
5-
__version__ = '1.39.0'
5+
__version__ = '1.40.0'
66

77
# for backward compatibility, invoke tagui.py functions to use in rpa.py
88
from tagui import *

Diff for: rpa_package/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
setup(
44
name='rpa',
5-
version='1.39.0',
6-
py_modules=['rpa'], install_requires=['tagui>=1.39.0'],
5+
version='1.40.0',
6+
py_modules=['rpa'], install_requires=['tagui>=1.40.0'],
77
author='Ken Soh',
88
author_email='[email protected]',
99
license='Apache License 2.0',

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='tagui',
5-
version='1.39.0',
5+
version='1.40.0',
66
py_modules=['tagui'],
77
author='Ken Soh',
88
author_email='[email protected]',

Diff for: tagui.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Apache License 2.0, Copyright 2019 Tebel.Automation Private Limited
33
# https://github.com/tebelorg/RPA-Python/blob/master/LICENSE.txt
44
__author__ = 'Ken Soh <[email protected]>'
5-
__version__ = '1.39.0'
5+
__version__ = '1.40.0'
66

77
import subprocess
88
import os
@@ -1279,7 +1279,9 @@ def table(element_identifier = None, filename_to_save = None):
12791279
print('[RPA][ERROR] - filename missing for table()')
12801280
return False
12811281

1282-
elif not exist(element_identifier):
1282+
element_identifier = str(element_identifier)
1283+
1284+
if not exist(element_identifier):
12831285
print('[RPA][ERROR] - cannot find ' + element_identifier)
12841286
return False
12851287

0 commit comments

Comments
 (0)