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
16 changes: 8 additions & 8 deletions atest/acceptance/keywords/cookies.robot
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ Add Cookie When Secure Is False
Add Cookie When Expiry Is Epoch
# To convert epoch to formatted string
# from time import strftime, localtime
# strftime('%Y-%m-%d %H:%M:%S', localtime(1793247900))
# strftime('%Y-%m-%d %H:%M:%S', localtime(1819772700))
# To update time each September (as Chrome limits cookies to one year expiry date) use
# import datetime
# print (datetime.datetime.strptime("2027-10-29 12:25:00", "%Y-%m-%d %I:%M:%S").timestamp())
Add Cookie Cookie1 value1 expiry=1793247900
Add Cookie Cookie1 value1 expiry=1824783900
${cookie} = Get Cookie Cookie1
${expiry} = Convert Date ${1793247900} exclude_millis=True
${expiry} = Convert Date ${1824783900} exclude_millis=True
Should Be Equal As Strings ${cookie.expiry} ${expiry}

Add Cookie When Expiry Is Human Readable Data&Time
Add Cookie Cookie12 value12 expiry=2026-10-29 12:25:00
Add Cookie Cookie12 value12 expiry=2027-10-29 12:25:00
${cookie} = Get Cookie Cookie12
Should Be Equal As Strings ${cookie.expiry} 2026-10-29 12:25:00
Should Be Equal As Strings ${cookie.expiry} 2027-10-29 12:25:00

Delete Cookie
[Tags] Known Issue Safari
Expand Down Expand Up @@ -123,20 +123,20 @@ Test Get Cookie Keyword Logging
... domain=localhost
... secure=False
... httpOnly=False
... expiry=2026-09-01 *:25:00
... expiry=2027-09-01 *:25:00
... extra={'sameSite': 'Lax'}
${cookie} = Get Cookie far_future

*** Keywords ***
Add Cookies
# To update time each September (as Chrome limits cookies to one year expiry date) use
# import datetime
# print (datetime.datetime.strptime("2027-09-01 12:25:00", "%Y-%m-%d %I:%M:%S").timestamp())
# print (datetime.datetime.strptime("2028-09-01 12:25:00", "%Y-%m-%d %I:%M:%S").timestamp())
Delete All Cookies
Add Cookie test seleniumlibrary
${now} = Get Current Date
${tomorrow_thistime} = Add Time To Date ${now} 1 day
${tomorrow_thistime_datetime} = Convert Date ${tomorrow_thistime} datetime
Set Suite Variable ${tomorrow_thistime_datetime}
Add Cookie another value expiry=${tomorrow_thistime}
Add Cookie far_future timemachine expiry=1788240300 # 2026-09-01 12:25:00
Add Cookie far_future timemachine expiry=1819772700 # 2027-09-01 12:25:00
2 changes: 1 addition & 1 deletion atest/acceptance/multiple_browsers_options.robot
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Chrome Browser With Selenium Options With Complex Object
[Tags] NoGrid SKIP_ON_WINDOWS
[Documentation]
... LOG 1:13 DEBUG REGEXP: .*['\\\"]goog:chromeOptions['\\\"].*
... LOG 1:13 DEBUG REGEXP: .*['\\\"]mobileEmulation['\\\"]: {['\\\"]deviceName['\\\"]: ['\\\"]Galaxy S5['\\\"].*
... LOG 1:13 DEBUG REGEXP: .*['\\\"]mobileEmulation['\\\"]: {['\\\"]deviceName['\\\"]: ['\\\"]Samsung Galaxy A55['\\\"].*
... LOG 1:13 DEBUG REGEXP: .*args['\\\"]: \\\[['\\\"]--disable-dev-shm-usage['\\\"].*
Open Browser ${FRONT PAGE} ${BROWSER} remote_url=${REMOTE_URL}
... desired_capabilities=${DESIRED_CAPABILITIES} options=add_argument ( "--disable-dev-shm-usage" ) ; add_experimental_option( "mobileEmulation" , { 'deviceName' : 'Samsung Galaxy A55'})
Expand Down
Loading