Skip to content

Commit d947af3

Browse files
committed
Testing drop down menu
1 parent df28b3c commit d947af3

File tree

2 files changed

+224
-4
lines changed

2 files changed

+224
-4
lines changed

1-UI-Elements/dropdown.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from selenium import webdriver
2+
from selenium.webdriver.common.by import By
3+
4+
from selenium.webdriver.support.select import Select
5+
6+
# Firefox webdriver for herokuapp site
7+
fDriverHA = webdriver.Firefox()
8+
fDriverHA.get('https://the-internet.herokuapp.com/')
9+
10+
# Click on drop down link
11+
fDriverHA.find_element(By.CSS_SELECTOR, "a[href='/dropdown']").click()
12+
13+
# Drop down list and select items
14+
dropdown = Select(fDriverHA.find_element(By.ID, "dropdown"))
15+
dropdown.select_by_index(1)
16+
dropdown.select_by_index(2)
17+
# NOTE: to be continue at https://elementalselenium.com/tips/5-select-from-a-dropdown

1-UI-Elements/geckodriver.log

Lines changed: 207 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -840,10 +840,15 @@ u@https://github.githubassets.com/assets/vendors-node_modules_github_paste-markd
840840
t@https://github.githubassets.com/assets/vendors-node_modules_github_paste-markdown_dist_index_esm_js-node_modules_github_quote-select-cbac5f-c7885f4526c5.js:18:20875
841841

842842
1710412800459 addons.xpi ERROR System addon update list error SyntaxError: XMLHttpRequest.open: 'http://%(server)s/dummy-system-addons.xml' is not a valid URL.
843-
1710413056370 geckodriver INFO Listening on 127.0.0.1:63712
844-
1710413059436 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "63713" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofile0lVz2d"
845-
console.warn: services.settings: Ignoring preference override of remote settings server
846-
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
843+
JavaScript error: , line 0: NS_ERROR_NOT_AVAILABLE
844+
JavaScript warning: https://www.googletagmanager.com/gtag/js?id=G-E423JL13RG, line 168: Script terminated by timeout at:
845+
Ma@https://www.googletagmanager.com/gtag/js?id=G-E423JL13RG:168:17
846+
mB@https://www.googletagmanager.com/gtag/js?id=G-E423JL13RG:501:135
847+
nB/<@https://www.googletagmanager.com/gtag/js?id=G-E423JL13RG:501:111
848+
849+
1710435701915 Marionette INFO Stopped listening on port 63506
850+
Dynamically enable window occlusion 1
851+
TINGS_DEVTOOLS=1 in the environment
847852
1710413059831 Marionette INFO Marionette enabled
848853
Dynamically enable window occlusion 0
849854
1710413059914 Marionette INFO Listening on port 63722
@@ -904,3 +909,201 @@ aa.Yk/c/<@https://www.googletagmanager.com/gtag/js?id=G-E423JL13RG:574:420
904909

905910
1710413405935 Marionette INFO Stopped listening on port 63989
906911
Dynamically enable window occlusion 1
912+
1711536191416 geckodriver INFO Listening on 127.0.0.1:52643
913+
1711536194511 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "52644" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofile16Ota4"
914+
console.warn: services.settings: Ignoring preference override of remote settings server
915+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
916+
1711536195293 Marionette INFO Marionette enabled
917+
Dynamically enable window occlusion 0
918+
1711536195387 Marionette INFO Listening on port 52652
919+
WebDriver BiDi listening on ws://127.0.0.1:52644
920+
Read port: 52652
921+
1711536195643 RemoteAgent WARN TLS certificate errors will be ignored for this session
922+
DevTools listening on ws://127.0.0.1:52644/devtools/browser/3cf02b74-beaf-427e-881b-29d598a3f2f0
923+
console.warn: LoginRecipes: "Falling back to a synchronous message for: https://www.ggeorgiou.gr."
924+
JavaScript warning: https://www.googletagmanager.com/gtag/js?id=G-E423JL13RG, line 177: Script terminated by timeout at:
925+
wb@https://www.googletagmanager.com/gtag/js?id=G-E423JL13RG:177:391
926+
Pl@https://www.googletagmanager.com/gtag/js?id=G-E423JL13RG:334:583
927+
ym@https://www.googletagmanager.com/gtag/js?id=G-E423JL13RG:339:613
928+
FH/<@https://www.googletagmanager.com/gtag/js?id=G-E423JL13RG:666:178
929+
aa.Tk/<@https://www.googletagmanager.com/gtag/js?id=G-E423JL13RG:613:126
930+
aa.Tk/c/<@https://www.googletagmanager.com/gtag/js?id=G-E423JL13RG:612:420
931+
932+
1711536214472 Marionette INFO Stopped listening on port 52652
933+
Dynamically enable window occlusion 1
934+
1711536221802 geckodriver INFO Listening on 127.0.0.1:52695
935+
1711536224866 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "52696" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofileQcgN4J"
936+
console.warn: services.settings: Ignoring preference override of remote settings server
937+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
938+
1711536225275 Marionette INFO Marionette enabled
939+
Dynamically enable window occlusion 0
940+
1711536225359 Marionette INFO Listening on port 52703
941+
WebDriver BiDi listening on ws://127.0.0.1:52696
942+
Read port: 52703
943+
1711536225552 RemoteAgent WARN TLS certificate errors will be ignored for this session
944+
DevTools listening on ws://127.0.0.1:52696/devtools/browser/6b42b007-843d-4ec6-8010-08424679015a
945+
console.warn: LoginRecipes: "Falling back to a synchronous message for: https://www.ggeorgiou.gr."
946+
JavaScript warning: https://www.googletagmanager.com/gtag/js?id=G-E423JL13RG, line 176: Script terminated by timeout at:
947+
rb@https://www.googletagmanager.com/gtag/js?id=G-E423JL13RG:176:1329
948+
DB@https://www.googletagmanager.com/gtag/js?id=G-E423JL13RG:539:135
949+
EB/<@https://www.googletagmanager.com/gtag/js?id=G-E423JL13RG:539:111
950+
951+
1711536246007 Marionette INFO Stopped listening on port 52703
952+
Dynamically enable window occlusion 1
953+
1711536578195 geckodriver INFO Listening on 127.0.0.1:52841
954+
1711536581265 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "52842" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofileocgcKr"
955+
console.warn: services.settings: Ignoring preference override of remote settings server
956+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
957+
1711536581651 Marionette INFO Marionette enabled
958+
Dynamically enable window occlusion 0
959+
1711536581732 Marionette INFO Listening on port 52850
960+
WebDriver BiDi listening on ws://127.0.0.1:52842
961+
Read port: 52850
962+
1711536581955 RemoteAgent WARN TLS certificate errors will be ignored for this session
963+
DevTools listening on ws://127.0.0.1:52842/devtools/browser/38154cfb-4b2b-478e-b467-69b88b40db92
964+
1711536590243 Marionette INFO Stopped listening on port 52850
965+
Dynamically enable window occlusion 1
966+
1711536917440 geckodriver INFO Listening on 127.0.0.1:53065
967+
1711536920511 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "53066" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofile2yOvEj"
968+
console.warn: services.settings: Ignoring preference override of remote settings server
969+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
970+
1711536920925 Marionette INFO Marionette enabled
971+
Dynamically enable window occlusion 0
972+
1711536921003 Marionette INFO Listening on port 53074
973+
WebDriver BiDi listening on ws://127.0.0.1:53066
974+
Read port: 53074
975+
1711536921195 RemoteAgent WARN TLS certificate errors will be ignored for this session
976+
DevTools listening on ws://127.0.0.1:53066/devtools/browser/a253e91f-c153-496e-bc54-6439972b507c
977+
1711536935289 Marionette INFO Stopped listening on port 53074
978+
Dynamically enable window occlusion 1
979+
1711537023010 geckodriver INFO Listening on 127.0.0.1:53161
980+
1711537026083 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "53162" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofilehTkOX5"
981+
console.warn: services.settings: Ignoring preference override of remote settings server
982+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
983+
1711537026478 Marionette INFO Marionette enabled
984+
Dynamically enable window occlusion 0
985+
1711537026555 Marionette INFO Listening on port 53171
986+
WebDriver BiDi listening on ws://127.0.0.1:53162
987+
Read port: 53171
988+
1711537026769 RemoteAgent WARN TLS certificate errors will be ignored for this session
989+
DevTools listening on ws://127.0.0.1:53162/devtools/browser/3a30249b-34b9-4a06-a85e-a0ba7dc0c633
990+
1711537036847 Marionette INFO Stopped listening on port 53171
991+
Dynamically enable window occlusion 1
992+
1711537175062 geckodriver INFO Listening on 127.0.0.1:53278
993+
1711537178149 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "53279" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofileDHQabT"
994+
console.warn: services.settings: Ignoring preference override of remote settings server
995+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
996+
1711537178532 Marionette INFO Marionette enabled
997+
Dynamically enable window occlusion 0
998+
1711537178613 Marionette INFO Listening on port 53288
999+
WebDriver BiDi listening on ws://127.0.0.1:53279
1000+
Read port: 53288
1001+
1711537178836 RemoteAgent WARN TLS certificate errors will be ignored for this session
1002+
DevTools listening on ws://127.0.0.1:53279/devtools/browser/6ba85f17-1ba5-425e-bb38-a506495394bf
1003+
1711537189898 Marionette INFO Stopped listening on port 53288
1004+
Dynamically enable window occlusion 1
1005+
1711537327623 geckodriver INFO Listening on 127.0.0.1:51447
1006+
1711537330703 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "51448" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofileHB1grz"
1007+
console.warn: services.settings: Ignoring preference override of remote settings server
1008+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
1009+
1711537331105 Marionette INFO Marionette enabled
1010+
Dynamically enable window occlusion 0
1011+
1711537331184 Marionette INFO Listening on port 51457
1012+
WebDriver BiDi listening on ws://127.0.0.1:51448
1013+
Read port: 51457
1014+
1711537331398 RemoteAgent WARN TLS certificate errors will be ignored for this session
1015+
DevTools listening on ws://127.0.0.1:51448/devtools/browser/8e09975f-0349-48d1-aabd-27126d04b7a8
1016+
1711537339617 Marionette INFO Stopped listening on port 51457
1017+
Dynamically enable window occlusion 1
1018+
1711537412788 geckodriver INFO Listening on 127.0.0.1:51536
1019+
1711537415873 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "51537" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofilejpICcl"
1020+
console.warn: services.settings: Ignoring preference override of remote settings server
1021+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
1022+
1711537416283 Marionette INFO Marionette enabled
1023+
Dynamically enable window occlusion 0
1024+
1711537416359 Marionette INFO Listening on port 51545
1025+
WebDriver BiDi listening on ws://127.0.0.1:51537
1026+
Read port: 51545
1027+
1711537416548 RemoteAgent WARN TLS certificate errors will be ignored for this session
1028+
DevTools listening on ws://127.0.0.1:51537/devtools/browser/11d92031-0109-43c0-9e24-e26ef1a35f47
1029+
1711537424457 Marionette INFO Stopped listening on port 51545
1030+
Dynamically enable window occlusion 1
1031+
1711537558250 geckodriver INFO Listening on 127.0.0.1:51653
1032+
1711537561320 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "51654" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofilet9FNpF"
1033+
console.warn: services.settings: Ignoring preference override of remote settings server
1034+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
1035+
1711537561715 Marionette INFO Marionette enabled
1036+
Dynamically enable window occlusion 0
1037+
1711537561797 Marionette INFO Listening on port 51663
1038+
WebDriver BiDi listening on ws://127.0.0.1:51654
1039+
Read port: 51663
1040+
1711537562015 RemoteAgent WARN TLS certificate errors will be ignored for this session
1041+
DevTools listening on ws://127.0.0.1:51654/devtools/browser/038b6942-d1af-42fc-97eb-309141aa7f31
1042+
1711537585692 Marionette INFO Stopped listening on port 51663
1043+
Dynamically enable window occlusion 1
1044+
1711537607942 geckodriver INFO Listening on 127.0.0.1:51725
1045+
1711537611003 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "51726" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofilem5KRRP"
1046+
console.warn: services.settings: Ignoring preference override of remote settings server
1047+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
1048+
1711537611387 Marionette INFO Marionette enabled
1049+
Dynamically enable window occlusion 0
1050+
1711537611477 Marionette INFO Listening on port 51735
1051+
WebDriver BiDi listening on ws://127.0.0.1:51726
1052+
Read port: 51735
1053+
1711537611695 RemoteAgent WARN TLS certificate errors will be ignored for this session
1054+
DevTools listening on ws://127.0.0.1:51726/devtools/browser/59c4e9a5-623f-4bba-82e6-fc6502f21d03
1055+
1711537619918 Marionette INFO Stopped listening on port 51735
1056+
Dynamically enable window occlusion 1
1057+
1711537707631 geckodriver INFO Listening on 127.0.0.1:51823
1058+
1711537710684 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "51824" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofilezwZkQP"
1059+
console.warn: services.settings: Ignoring preference override of remote settings server
1060+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
1061+
1711537711050 Marionette INFO Marionette enabled
1062+
Dynamically enable window occlusion 0
1063+
1711537711129 Marionette INFO Listening on port 51834
1064+
WebDriver BiDi listening on ws://127.0.0.1:51824
1065+
Read port: 51834
1066+
1711537711369 RemoteAgent WARN TLS certificate errors will be ignored for this session
1067+
DevTools listening on ws://127.0.0.1:51824/devtools/browser/dd5d94f0-9cc3-4cbe-90e6-6b664be14310
1068+
1711537721196 Marionette INFO Stopped listening on port 51834
1069+
Dynamically enable window occlusion 1
1070+
1711537820435 geckodriver INFO Listening on 127.0.0.1:51924
1071+
1711537823513 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "51925" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofile2i6QHT"
1072+
console.warn: services.settings: Ignoring preference override of remote settings server
1073+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
1074+
1711537823966 Marionette INFO Marionette enabled
1075+
Dynamically enable window occlusion 0
1076+
1711537824045 Marionette INFO Listening on port 51934
1077+
WebDriver BiDi listening on ws://127.0.0.1:51925
1078+
Read port: 51934
1079+
1711537824270 RemoteAgent WARN TLS certificate errors will be ignored for this session
1080+
DevTools listening on ws://127.0.0.1:51925/devtools/browser/0fb912ea-9277-4bf2-b720-c3f5bad4c143
1081+
1711537834949 Marionette INFO Stopped listening on port 51934
1082+
Dynamically enable window occlusion 1
1083+
1711537840320 geckodriver INFO Listening on 127.0.0.1:51981
1084+
1711537843409 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "51982" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofileXFJpRe"
1085+
console.warn: services.settings: Ignoring preference override of remote settings server
1086+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
1087+
1711537843785 Marionette INFO Marionette enabled
1088+
Dynamically enable window occlusion 0
1089+
1711537843864 Marionette INFO Listening on port 51991
1090+
WebDriver BiDi listening on ws://127.0.0.1:51982
1091+
Read port: 51991
1092+
1711537844088 RemoteAgent WARN TLS certificate errors will be ignored for this session
1093+
DevTools listening on ws://127.0.0.1:51982/devtools/browser/61a3df2c-0b02-4900-a941-4aa48d1d7bfd
1094+
1711537854753 Marionette INFO Stopped listening on port 51991
1095+
Dynamically enable window occlusion 1
1096+
1711538528385 geckodriver INFO Listening on 127.0.0.1:52570
1097+
1711538531473 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "52571" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofilecPTqct"
1098+
console.warn: services.settings: Ignoring preference override of remote settings server
1099+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
1100+
1711538531879 Marionette INFO Marionette enabled
1101+
Dynamically enable window occlusion 0
1102+
1711538531960 Marionette INFO Listening on port 52580
1103+
WebDriver BiDi listening on ws://127.0.0.1:52571
1104+
Read port: 52580
1105+
1711538532152 RemoteAgent WARN TLS certificate errors will be ignored for this session
1106+
DevTools listening on ws://127.0.0.1:52571/devtools/browser/c6024ff1-17f5-49b6-be46-d610c0de36be
1107+
1711538563809 addons.xpi ERROR System addon update list error SyntaxError: XMLHttpRequest.open: 'http://%(server)s/dummy-system-addons.xml' is not a valid URL.
1108+
1711538584872 Marionette INFO Stopped listening on port 52580
1109+
Dynamically enable window occlusion 1

0 commit comments

Comments
 (0)