This repository was archived by the owner on Feb 2, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +32
-40
lines changed Expand file tree Collapse file tree 9 files changed +32
-40
lines changed Original file line number Diff line number Diff line change 36
36
brew install --cask microsoft-edge
37
37
brew install zip
38
38
brew install curl
39
-
39
+ exclude :
40
+ - os : macos-latest
41
+ browser : firefoxheadless # Webdriver download if not working with Firefox at GHA
42
+ java-version : 8
43
+
40
44
runs-on : ${{ matrix.os }}
41
45
name : Test on ${{ matrix.os }} with Java ${{ matrix.java-version }} using browser ${{ matrix.browser }}
42
46
steps :
Original file line number Diff line number Diff line change 290
290
<log >target/robotframework-reports/${browser} _log.html</log >
291
291
<output >target/robotframework-reports/${browser} _output.xml</output >
292
292
<xunitFile >target/robotframework-reports/${browser} _xUnit.xml</xunitFile >
293
- <nonCriticalTags >
294
- <nonCriticalTag >${browser} </nonCriticalTag >
295
- </nonCriticalTags >
293
+ <skips >
294
+ <skip >${browser} </skip >
295
+ </skips >
296
+ <skiponfailures >
297
+ <skiponfailure >${browser} </skiponfailure >
298
+ </skiponfailures >
296
299
</configuration >
297
300
</execution >
298
301
<execution >
Original file line number Diff line number Diff line change 24
24
${Current.Location}= Get Location
25
25
Run Keyword If '${Current.Location}'!='${Google.Site.Url}' SeleniumLibrary.Go To ${Google.Site.Url}
26
26
Title Should Be ${Google.Site.PageTitle}
27
+ Handle Cookie Consent xpath:(//div[@role="none"])[last()]
27
28
28
29
Close
29
30
Close Browser
Original file line number Diff line number Diff line change @@ -13,4 +13,13 @@ ${Selenium.Timeout} 30.0
13
13
14
14
*** Keywords ***
15
15
Test
16
- Op
16
+ Op
17
+
18
+ Handle Cookie Consent
19
+ [Arguments] ${consent click xpath }
20
+ Comment Consent search causes stack overflow to jbrowser, so tagging tescases using this keyword
21
+ Set Tags jbrowser
22
+ ${count } Get Matching Xpath Count ${consent click xpath }
23
+ IF ${count } > 0
24
+ Click Element ${consent click xpath }
25
+ END
Original file line number Diff line number Diff line change @@ -8,12 +8,15 @@ ${URL Application} http://www.w3schools.com
8
8
9
9
*** Test Cases ***
10
10
Select
11
+ [Tags] jbrowser
11
12
Open Browser https://developer.mozilla.org/en/docs/Web/HTML/Element/select#Examples ${browser } mainbrowser
12
- Wait Until Page Contains Element xpath://select
13
- Select From List xpath://select Third Value
14
- ${label } Get Selected List Label xpath://select
13
+ Wait Until Page Contains Element frame_Basic_select
14
+ Select Frame frame_Basic_select
15
+ Wait Until Page Contains Element xpath://select[@name="choice"]
16
+ Select From List xpath://select[@name="choice"] Third Value
17
+ ${label } Get Selected List Label xpath://select[@name="choice"]
15
18
Should Be Equal ${label } Third Value
16
- List Selection Should Be xpath://select Third Value
19
+ List Selection Should Be xpath://select[@name="choice"] Third Value
17
20
18
21
Multiple Browsers
19
22
Open Browser ${URL Application } ${browser } mainbrowser1
Original file line number Diff line number Diff line change 2
2
Suite Setup Open Page
3
3
Suite Teardown Close Browser
4
4
Resource ../../settings/Settings.robot
5
+ Default Tags jbrowser
5
6
6
7
*** Variables ***
7
8
${URL Application } http://examples.sencha.com/extjs/6.5.0/examples/classic/ticket-app/index.html
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ Resource ../../settings/Settings.robot
4
4
*** Test Cases ***
5
5
Cookies
6
6
Open Browser http://www.whatarecookies.com/cookietest.asp ${browser } mainbrowser
7
+ Handle Cookie Consent cookieconsent_btn
7
8
${all_cookies } = Get Cookies
8
- ${test } = Get Cookie Value _ga
9
+ ${test } = Get Cookie Value cookieconsent
9
10
Close Browser
You can’t perform that action at this time.
0 commit comments