Commit 4d158ae236bffe3fc6576861d6c3e13f76254061
1 parent
9ece2631
Use "homepage" instead of "url" (Prom)
Showing
1 changed file
with
7 additions
and
5 deletions
| @@ -21,8 +21,10 @@ ${PASSWORD} 1234 | @@ -21,8 +21,10 @@ ${PASSWORD} 1234 | ||
| 21 | log many @{ARGUMENTS} | 21 | log many @{ARGUMENTS} |
| 22 | log ${username} | 22 | log ${username} |
| 23 | [Documentation] Відкрити брaвзер, створити обєкт api wrapper, тощо | 23 | [Documentation] Відкрити брaвзер, створити обєкт api wrapper, тощо |
| 24 | - ${url}= Get Broker Property By Username ${ARGUMENTS[0]} url | ||
| 25 | - Open Browser ${url} ${USERS.users['${username}'].browser} alias=${username} | 24 | + Open Browser |
| 25 | + ... ${USERS.users['${username}'].homepage} | ||
| 26 | + ... ${USERS.users['${username}'].browser} | ||
| 27 | + ... alias=${username} | ||
| 26 | Set Window Position @{USERS.users['${username}'].position} | 28 | Set Window Position @{USERS.users['${username}'].position} |
| 27 | #Set Window Size @{USERS.users['${username}'].size} | 29 | #Set Window Size @{USERS.users['${username}'].size} |
| 28 | Log Variables | 30 | Log Variables |
| @@ -100,9 +102,9 @@ Get tender id | @@ -100,9 +102,9 @@ Get tender id | ||
| 100 | ... ${ARGUMENTS[2]} == id | 102 | ... ${ARGUMENTS[2]} == id |
| 101 | Switch browser ${ARGUMENTS[0]} | 103 | Switch browser ${ARGUMENTS[0]} |
| 102 | ${current_location}= Get Location | 104 | ${current_location}= Get Location |
| 103 | - ${url}= Get Broker Property By Username ${ARGUMENTS[0]} url | ||
| 104 | - Run Keyword If '${url}/#/tenderDetailes/${ARGUMENTS[2]}'=='${current_location}' Reload Page | ||
| 105 | - Go to ${url} | 105 | + ${homepage}= Set Variable ${USERS.users['${ARGUMENTS[0]}'].homepage} |
| 106 | + Run Keyword If '${homepage}/#/tenderDetailes/${ARGUMENTS[2]}'=='${current_location}' Reload Page | ||
| 107 | + Go To ${homepage} | ||
| 106 | Wait Until Page Contains Допороговые закупки Украины 10 | 108 | Wait Until Page Contains Допороговые закупки Украины 10 |
| 107 | sleep 1 | 109 | sleep 1 |
| 108 | Input Text id=search ${ARGUMENTS[1]} | 110 | Input Text id=search ${ARGUMENTS[1]} |
Please
register
or
login
to post a comment