Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

### [Current changes]
- **[Add]** 'frame parameter' support is added into Switch_Iframe action
- **[Add]** Action for get access token url (oauth 2.0) with documentation
- **[Add]** Browser action for get current url from address bar with documentation
- **[Add]** Basic performance testing functions for rest calls
- **[Add]** Added selenium grid functionality. Usage:
```shell
Expand Down
17 changes: 17 additions & 0 deletions Framework/Built_In_Automation/Web/REST/BuiltInFunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1571,6 +1571,23 @@ def Insert_Tuple_Into_List(step_data):

@logger
def Get_Oauth2_Access_Token_URl(step_data):
"""
This action takes the data given below as input and returns us an access token url. This url will open a popup
window asking for username and password for authentication.

client id element parameter <takes client id for generating an access token url>
client secret element parameter <takes client secret for generating an access token url>
access point element parameter <takes the access point for generating an access token url>
grant type element parameter <takes the type of grant, ex: Authorization Code (With PKCE)>
base uri element parameter <takes the base uri for generating an access token url>
request token uri element parameter <takes the request token uri for generating an access token url>
redirect uri element parameter <takes the redirect uri for generating an access token url>
token name element parameter <takes the name of token for generating an access token url>

:param data_set: Action data set
:return: string: "passed" or "zeuz_failed" depending on the outcome

"""
sModuleInfo = inspect.currentframe().f_code.co_name + " : " + MODULE_NAME
try:
client_id = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3412,6 +3412,14 @@ def Switch_Browser(step_data):

@logger
def Get_Current_URL(step_data):
"""
This action saves the current url the browser is in by inspecting the address bar.

get current url selenium action <saves the current url by inspecting the address bar of the browser>

:param data_set: Action data set
:return: string: "Current url saved in a variable named '%s'" or "zeuz_failed" depending on the outcome
"""
sModuleInfo = inspect.currentframe().f_code.co_name + " : " + MODULE_NAME
global selenium_driver
try:
Expand Down