Skip to content

Commit 65c0580

Browse files
committed
Radio buttons clicks
1 parent b803c08 commit 65c0580

File tree

4 files changed

+63
-2
lines changed

4 files changed

+63
-2
lines changed

1-UI-Elements/checkboxes.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from selenium import webdriver
22
from selenium.webdriver.common.by import By
33

4-
from selenium.webdriver.support.select import Select
5-
64
# Firefox webdriver for herokuapp site
75
fDriverHA = webdriver.Firefox()
86
fDriverHA.get('https://the-internet.herokuapp.com/')

1-UI-Elements/geckodriver.log

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,3 +1459,46 @@ Read port: 59388
14591459
DevTools listening on ws://127.0.0.1:59380/devtools/browser/0b97d877-727e-4159-a3a0-dd6e1a1fb203
14601460
1712762421615 Marionette INFO Stopped listening on port 59388
14611461
Dynamically enable window occlusion 1
1462+
1713254522370 geckodriver INFO Listening on 127.0.0.1:60658
1463+
1713254525535 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "60659" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofile4Rm9fT"
1464+
console.warn: services.settings: Ignoring preference override of remote settings server
1465+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
1466+
1713254527436 Marionette INFO Marionette enabled
1467+
Dynamically enable window occlusion 0
1468+
1713254527927 Marionette INFO Listening on port 60667
1469+
WebDriver BiDi listening on ws://127.0.0.1:60659
1470+
Read port: 60667
1471+
1713254528187 RemoteAgent WARN TLS certificate errors will be ignored for this session
1472+
DevTools listening on ws://127.0.0.1:60659/devtools/browser/79092b20-08f2-4431-b907-7dc14e71d1c9
1473+
1713254547861 Marionette INFO Stopped listening on port 60667
1474+
Dynamically enable window occlusion 1
1475+
1713254884288 geckodriver INFO Listening on 127.0.0.1:60880
1476+
1713254887372 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "60881" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofilekTWkTR"
1477+
console.warn: services.settings: Ignoring preference override of remote settings server
1478+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
1479+
1713254887750 Marionette INFO Marionette enabled
1480+
Dynamically enable window occlusion 0
1481+
1713254887836 Marionette INFO Listening on port 60890
1482+
WebDriver BiDi listening on ws://127.0.0.1:60881
1483+
Read port: 60890
1484+
1713254888065 RemoteAgent WARN TLS certificate errors will be ignored for this session
1485+
DevTools listening on ws://127.0.0.1:60881/devtools/browser/d3b222b5-17f0-4796-b1c1-4eaed4b520d8
1486+
console.error: ({})
1487+
JavaScript warning: https://pagead2.googlesyndication.com/bg/L0LConaBzCc577BZGNgzP3bg87fF5vhB9-a07M4Tw6o.js line 2 > eval line 6328 > eval line 1 > eval line 1 > eval, line 1: WEBGL_debug_renderer_info is deprecated in Firefox and will be removed. Please use RENDERER.
1488+
1713254905209 Marionette INFO Stopped listening on port 60890
1489+
Dynamically enable window occlusion 1
1490+
1713255297726 geckodriver INFO Listening on 127.0.0.1:61245
1491+
1713255300803 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "61246" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofileH5gbJn"
1492+
console.warn: services.settings: Ignoring preference override of remote settings server
1493+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
1494+
1713255301181 Marionette INFO Marionette enabled
1495+
Dynamically enable window occlusion 0
1496+
1713255301260 Marionette INFO Listening on port 61258
1497+
WebDriver BiDi listening on ws://127.0.0.1:61246
1498+
Read port: 61258
1499+
1713255301497 RemoteAgent WARN TLS certificate errors will be ignored for this session
1500+
DevTools listening on ws://127.0.0.1:61246/devtools/browser/dff5611f-0b50-4f7a-80bd-7b1d1d638c3a
1501+
console.error: ({})
1502+
JavaScript warning: https://pagead2.googlesyndication.com/bg/L0LConaBzCc577BZGNgzP3bg87fF5vhB9-a07M4Tw6o.js line 2 > eval line 6251 > eval line 1 > eval line 1 > eval, line 1: WEBGL_debug_renderer_info is deprecated in Firefox and will be removed. Please use RENDERER.
1503+
1713255314180 Marionette INFO Stopped listening on port 61258
1504+
Dynamically enable window occlusion 1

1-UI-Elements/radiobuttons.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from selenium import webdriver
2+
from selenium.webdriver.common.by import By
3+
4+
# Firefox webdriver for herokuapp site
5+
fDriver = webdriver.Firefox()
6+
fDriver.get('https://rahulshettyacademy.com/AutomationPractice/')
7+
8+
# RADIO BUTTONS - Check if all radio buttons are clicked
9+
radioButtons = fDriver.find_elements(By.CSS_SELECTOR, ".radioButton")
10+
for rd in radioButtons:
11+
rd.click()
12+
assert rd.is_selected()

1-UI-Elements/temp_test.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
from selenium import webdriver
22
from selenium.webdriver.common.by import By
33

4+
# Firefox webdriver for herokuapp site
5+
fDriver = webdriver.Firefox()
6+
fDriver.get('https://rahulshettyacademy.com/AutomationPractice/')
7+
8+
# RADIO BUTTONS - Check if 2nd is clicked
9+
radiobuttons = fDriver.find_elements(By.CSS_SELECTOR, ".radioButton")
10+
radiobuttons[2].click()
11+
assert radiobuttons[2].is_selected() #Make sure that 3rd radio button is selected

0 commit comments

Comments
 (0)