From 0e77301d3a158d1f25b32b9cd7e20bc47fc8d58b Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 31 Mar 2020 05:34:17 +0000 Subject: [PATCH 1/4] Update pytest-html requirement from <2.1.0 to <2.2.0 Updates the requirements on [pytest-html](https://github.com/pytest-dev/pytest-html) to permit the latest version. - [Release notes](https://github.com/pytest-dev/pytest-html/releases) - [Changelog](https://github.com/pytest-dev/pytest-html/blob/master/CHANGES.rst) - [Commits](https://github.com/pytest-dev/pytest-html/compare/1.0...v2.1.1) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index fff0a0e..07a4a73 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,7 +14,7 @@ urllib3==1.25.7 requests>=2.21.0 ipdb==0.12.2 pytest>=4.0.2 -pytest-html<2.1.0 +pytest-html<2.2.0 xlrd>=0.9.0 scrapy loguru diff --git a/setup.py b/setup.py index 2c9c463..9b2a2c6 100644 --- a/setup.py +++ b/setup.py @@ -57,7 +57,7 @@ 'requests>=2.21.0', 'ipdb==0.12.2', 'pytest>=4.0.2', - 'pytest-html<2.1.0', + 'pytest-html<2.2.0', 'xlrd>=0.9.0', 'scrapy', 'nltk', From afe64fdc30b5515a2d57ab3d6b0f3a23939632b2 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 31 Mar 2020 05:34:37 +0000 Subject: [PATCH 2/4] Bump ipdb from 0.12.2 to 0.13.2 Bumps [ipdb](https://github.com/gotcha/ipdb) from 0.12.2 to 0.13.2. - [Release notes](https://github.com/gotcha/ipdb/releases) - [Changelog](https://github.com/gotcha/ipdb/blob/master/HISTORY.txt) - [Commits](https://github.com/gotcha/ipdb/compare/0.12.2...0.13.2) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index fff0a0e..52280d7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,7 +12,7 @@ pycodestyle<2.6.0,>=2.5.0 pandas==0.24.2 urllib3==1.25.7 requests>=2.21.0 -ipdb==0.12.2 +ipdb==0.13.2 pytest>=4.0.2 pytest-html<2.1.0 xlrd>=0.9.0 diff --git a/setup.py b/setup.py index 2c9c463..c801233 100644 --- a/setup.py +++ b/setup.py @@ -55,7 +55,7 @@ 'pandas==0.24.2', 'urllib3==1.25.7', 'requests>=2.21.0', - 'ipdb==0.12.2', + 'ipdb==0.13.2', 'pytest>=4.0.2', 'pytest-html<2.1.0', 'xlrd>=0.9.0', From 07196af0f24542eb3dd6b599304f5d2f1a74395e Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2020 05:31:19 +0000 Subject: [PATCH 3/4] Bump urllib3 from 1.25.7 to 1.25.9 Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.25.7 to 1.25.9. - [Release notes](https://github.com/urllib3/urllib3/releases) - [Changelog](https://github.com/urllib3/urllib3/blob/master/CHANGES.rst) - [Commits](https://github.com/urllib3/urllib3/compare/1.25.7...1.25.9) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index fff0a0e..72941ed 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,7 +10,7 @@ opencv-python flake8==3.7.9 pycodestyle<2.6.0,>=2.5.0 pandas==0.24.2 -urllib3==1.25.7 +urllib3==1.25.9 requests>=2.21.0 ipdb==0.12.2 pytest>=4.0.2 diff --git a/setup.py b/setup.py index 2c9c463..0b3ba02 100644 --- a/setup.py +++ b/setup.py @@ -53,7 +53,7 @@ 'flake8==3.7.9', 'pycodestyle<2.6.0,>=2.5.0', 'pandas==0.24.2', - 'urllib3==1.25.7', + 'urllib3==1.25.9', 'requests>=2.21.0', 'ipdb==0.12.2', 'pytest>=4.0.2', From 06e0bfdb91d0dfd38224f7485e1c78f58eea2052 Mon Sep 17 00:00:00 2001 From: Revant Date: Tue, 5 May 2020 15:02:25 +0530 Subject: [PATCH 4/4] Update browseractions.py --- prodigyqa/browseractions.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/prodigyqa/browseractions.py b/prodigyqa/browseractions.py index 0542768..0af6928 100755 --- a/prodigyqa/browseractions.py +++ b/prodigyqa/browseractions.py @@ -714,4 +714,17 @@ def __execute_script(self, script, web_elm=None): if isinstance(web_elm, dict): return self.driver.execute_script( script, - self.__find_element(web_elm)) + self.__find_element(web_elm) + + def get_element(self, locator: dict): + """return web element of a locator. + :param locator: dictionary of identifier type + and value ({'by':'id', 'value':'start-of-content.'}). + :type locator: dict + """ + self.locator_check(locator) + self.page_readiness_wait() + if isinstance(locator, dict): + return self.__find_element(locator) + else: + AssertionError("Invalid locator type")