0
0
Selenium Pythontesting~20 mins

First Selenium script in Selenium Python - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Selenium Script Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Predict Output
intermediate
2:00remaining
What is the output of this Selenium script?
Consider this Selenium Python script that opens a webpage and prints the page title. What will be printed?
Selenium Python
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By

service = Service('/path/to/chromedriver')
driver = webdriver.Chrome(service=service)
driver.get('https://example.com')
print(driver.title)
driver.quit()
AExample Domain
Bhttps://example.com
CPage not found
DSyntaxError
Attempts:
2 left
💡 Hint
The title is the text inside the tag of the webpage.</div></div><div class="feedback-box incorrect d-none"><div class="feedback-title">✗ Incorrect</div><div class="feedback-text">The script opens https://example.com and prints the page title, which is 'Example Domain'.</div></div></div></div><div class="challenge-container "><div class="task-card "><div class="task-header"><div class="task-badge"><span class="challenge-type-badge locator">❓<!-- --> <!-- -->locator</span></div><span class="task-difficulty intermediate">intermediate</span></div><div class="challenge-timer "><svg class="timer-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg><span class="timer-value">1:30</span><span class="timer-label">remaining</span></div><div class="challenge-prompt"><div class="challenge-title">Which locator correctly finds the login button by its ID?</div><div>You want to click a login button with the HTML: <button id="loginBtn">Login</button>. Which Selenium locator is correct?</div></div><div class="d-none"></div><div class="task-options"><div class="task-option "><span class="task-option-key">A</span><span class="text-pre-wrap">driver.find_element(By.CLASS_NAME, 'loginBtn')</span></div><div class="task-option "><span class="task-option-key">B</span><span class="text-pre-wrap">driver.find_element(By.ID, 'loginBtn')</span></div><div class="task-option "><span class="task-option-key">C</span><span class="text-pre-wrap">driver.find_element(By.NAME, 'loginBtn')</span></div><div class="task-option "><span class="task-option-key">D</span><span class="text-pre-wrap">driver.find_element(By.TAG_NAME, 'loginBtn')</span></div></div><div class="challenge-attempts"><span>Attempts:</span><div class="attempt-dots"><span class="attempt-dot "></span><span class="attempt-dot "></span></div><span>2<!-- --> left</span></div><div class="challenge-hint d-none"><div class="challenge-hint-title">💡 Hint</div><div class="challenge-hint-text">ID is a unique attribute and should be accessed with By.ID.</div></div><div class="feedback-box incorrect d-none"><div class="feedback-title">✗ Incorrect</div><div class="feedback-text">The button has an ID 'loginBtn', so By.ID with 'loginBtn' is the correct locator.</div></div></div></div><div class="challenge-container "><div class="task-card "><div class="task-header"><div class="task-badge"><span class="challenge-type-badge assertion">❓<!-- --> <!-- -->assertion</span></div><span class="task-difficulty advanced">advanced</span></div><div class="challenge-timer "><svg class="timer-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg><span class="timer-value">1:30</span><span class="timer-label">remaining</span></div><div class="challenge-prompt"><div class="challenge-title">Which assertion correctly verifies the page title is 'Dashboard'?</div><div>After logging in, you want to check the page title is exactly 'Dashboard'. Which assertion is correct?</div></div><div class=""><div class="code-block"><div class="code-header"><span class="code-title">Selenium Python</span><button class="code-copy-btn"><span class="new-material-symbols icon-hw-16"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M326.93-211.18q-30.99 0-53.37-22.38t-22.38-53.37v-528.56q0-31.06 22.38-53.48 22.38-22.43 53.37-22.43h408.56q31.06 0 53.48 22.43 22.43 22.42 22.43 53.48v528.56q0 30.99-22.43 53.37-22.42 22.38-53.48 22.38H326.93Zm0-75.75h408.56v-528.56H326.93v528.56ZM184.51-68.6q-31.06 0-53.48-22.43-22.43-22.42-22.43-53.48v-566.43q0-16 10.97-26.94 10.98-10.94 27.1-10.94 16.13 0 26.99 10.94 10.85 10.94 10.85 26.94v566.43h446.43q16 0 26.94 10.97 10.94 10.97 10.94 27.1 0 16.13-10.94 26.98-10.94 10.86-26.94 10.86H184.51Zm142.42-218.33v-528.56 528.56Z"></path></svg></span></button></div><pre class="code-content">title = driver.title</pre></div></div><div class="task-options"><div class="task-option "><span class="task-option-key">A</span><span class="text-pre-wrap">assert title > 'Dashboard'</span></div><div class="task-option "><span class="task-option-key">B</span><span class="text-pre-wrap">assert 'Dashboard' in title</span></div><div class="task-option "><span class="task-option-key">C</span><span class="text-pre-wrap">assert title == 'Dashboard'</span></div><div class="task-option "><span class="task-option-key">D</span><span class="text-pre-wrap">assert title != 'Dashboard'</span></div></div><div class="challenge-attempts"><span>Attempts:</span><div class="attempt-dots"><span class="attempt-dot "></span><span class="attempt-dot "></span></div><span>2<!-- --> left</span></div><div class="challenge-hint d-none"><div class="challenge-hint-title">💡 Hint</div><div class="challenge-hint-text">Use equality to check exact match.</div></div><div class="feedback-box incorrect d-none"><div class="feedback-title">✗ Incorrect</div><div class="feedback-text">To verify the title is exactly 'Dashboard', use assert title == 'Dashboard'.</div></div></div></div><div class="challenge-container "><div class="task-card "><div class="task-header"><div class="task-badge"><span class="challenge-type-badge debug">🔧<!-- --> <!-- -->Debug</span></div><span class="task-difficulty advanced">advanced</span></div><div class="challenge-timer "><svg class="timer-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg><span class="timer-value">2:00</span><span class="timer-label">remaining</span></div><div class="challenge-prompt"><div class="challenge-title">What error does this Selenium script raise?</div><div>This script tries to find an element but has a mistake. What error occurs?</div></div><div class=""><div class="code-block"><div class="code-header"><span class="code-title">Selenium Python</span><button class="code-copy-btn"><span class="new-material-symbols icon-hw-16"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M326.93-211.18q-30.99 0-53.37-22.38t-22.38-53.37v-528.56q0-31.06 22.38-53.48 22.38-22.43 53.37-22.43h408.56q31.06 0 53.48 22.43 22.43 22.42 22.43 53.48v528.56q0 30.99-22.43 53.37-22.42 22.38-53.48 22.38H326.93Zm0-75.75h408.56v-528.56H326.93v528.56ZM184.51-68.6q-31.06 0-53.48-22.43-22.43-22.42-22.43-53.48v-566.43q0-16 10.97-26.94 10.98-10.94 27.1-10.94 16.13 0 26.99 10.94 10.85 10.94 10.85 26.94v566.43h446.43q16 0 26.94 10.97 10.94 10.97 10.94 27.1 0 16.13-10.94 26.98-10.94 10.86-26.94 10.86H184.51Zm142.42-218.33v-528.56 528.56Z"></path></svg></span></button></div><pre class="code-content"><span>from</span> selenium <span>import</span> webdriver <span>from</span> selenium.webdriver.chrome.service <span>import</span> Service <span>from</span> selenium.webdriver.common.by <span>import</span> By service = Service(<span>'/path/to/chromedriver'</span>) driver = webdriver.Chrome(service=service) driver.get(<span>'https://example.com'</span>) element = driver.find_element(By.ID, <span>'nonexistent'</span>) driver.quit()</pre></div></div><div class="task-options"><div class="task-option "><span class="task-option-key">A</span><span class="text-pre-wrap">selenium.common.exceptions.NoSuchElementException</span></div><div class="task-option "><span class="task-option-key">B</span><span class="text-pre-wrap">AttributeError</span></div><div class="task-option "><span class="task-option-key">C</span><span class="text-pre-wrap">TimeoutException</span></div><div class="task-option "><span class="task-option-key">D</span><span class="text-pre-wrap">SyntaxError</span></div></div><div class="challenge-attempts"><span>Attempts:</span><div class="attempt-dots"><span class="attempt-dot "></span><span class="attempt-dot "></span></div><span>2<!-- --> left</span></div><div class="challenge-hint d-none"><div class="challenge-hint-title">💡 Hint</div><div class="challenge-hint-text">The element ID does not exist on the page.</div></div><div class="feedback-box incorrect d-none"><div class="feedback-title">✗ Incorrect</div><div class="feedback-text">Trying to find an element that does not exist raises NoSuchElementException.</div></div></div></div><div class="challenge-container "><div class="task-card "><div class="task-header"><div class="task-badge"><span class="challenge-type-badge framework">❓<!-- --> <!-- -->framework</span></div><span class="task-difficulty expert">expert</span></div><div class="challenge-timer "><svg class="timer-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg><span class="timer-value">2:30</span><span class="timer-label">remaining</span></div><div class="challenge-prompt"><div class="challenge-title">Which code snippet correctly waits for an element to be clickable before clicking?</div><div>You want to wait up to 10 seconds for a button with ID 'submitBtn' to be clickable, then click it. Which code is correct?</div></div><div class="d-none"></div><div class="task-options"><div class="task-option task-option-code "><span class="task-option-key">A</span><pre class="option-code">driver.implicitly_wait(10) button = driver.find_element(By.ID, 'submitBtn') button.click()</pre></div><div class="task-option task-option-code "><span class="task-option-key">B</span><pre class="option-code">from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC wait = WebDriverWait(driver, 10) button = wait.until(EC.presence_of_element_located((By.ID, 'submitBtn'))) button.click()</pre></div><div class="task-option task-option-code "><span class="task-option-key">C</span><pre class="option-code">import time time.sleep(10) button = driver.find_element(By.ID, 'submitBtn') button.click()</pre></div><div class="task-option task-option-code "><span class="task-option-key">D</span><pre class="option-code">from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC wait = WebDriverWait(driver, 10) button = wait.until(EC.element_to_be_clickable((By.ID, 'submitBtn'))) button.click()</pre></div></div><div class="challenge-attempts"><span>Attempts:</span><div class="attempt-dots"><span class="attempt-dot "></span><span class="attempt-dot "></span></div><span>2<!-- --> left</span></div><div class="challenge-hint d-none"><div class="challenge-hint-title">💡 Hint</div><div class="challenge-hint-text">Use explicit wait for element to be clickable.</div></div><div class="feedback-box incorrect d-none"><div class="feedback-title">✗ Incorrect</div><div class="feedback-text">Option D uses explicit wait with element_to_be_clickable condition, which waits until the button is ready to be clicked.</div></div></div></div></div></article><div class="confetti-container"></div></div></div></main><div style="position:fixed;bottom:24px;right:24px;z-index:50"><button style="background:rgba(255,255,255,0.95);border:1px solid rgba(108,99,255,0.18);border-radius:10px;padding:10px 16px;color:#5f56fe;font-size:14px;cursor:pointer;display:flex;align-items:center;gap:7px;backdrop-filter:blur(12px);box-shadow:0 2px 12px rgba(0,0,0,0.08), 0 0 0 1px rgba(108,99,255,0.06);transition:all 0.2s"><span style="font-size:14px">⚑</span>Report Issue</button></div></div> <script src="/_next/static/chunks/webpack-fd24bd8e19d2841a.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/b133bdac07c7940e.css\",\"style\"]\n2:HL[\"/_next/static/css/837a603cb1a59856.css\",\"style\"]\n3:HL[\"/_next/static/css/725c7861d1898ba8.css\",\"style\"]\n4:HL[\"/_next/static/css/caf3ca742c7945f9.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"5:I[95751,[],\"\"]\n8:I[39275,[],\"\"]\ne:I[61343,[],\"\"]\nf:I[84080,[\"8726\",\"static/chunks/8726-583188341cbc1496.js\",\"3185\",\"static/chunks/app/layout-7a1373330f6a4c98.js\"],\"\"]\n10:I[88726,[\"8726\",\"static/chunks/8726-583188341cbc1496.js\",\"3185\",\"static/chunks/app/layout-7a1373330f6a4c98.js\"],\"Toaster\"]\n11:I[20154,[\"8422\",\"static/chunks/66ec4792-a0fc378024be0c7b.js\",\"6648\",\"static/chunks/6648-fff0cf0e0a1f8d25.js\",\"9160\",\"static/chunks/app/not-found-c4181ddc3e64e5f3.js\"],\"default\"]\n12:I[70548,[\"8726\",\"static/chunks/8726-583188341cbc1496.js\",\"3185\",\"static/chunks/app/layout-7a1373330f6a4c98.js\"],\"default\"]\n14:I[76130,[],\"\"]\n9:[\"lang\",\"en\",\"d\"]\na:[\"subject\",\"selenium-python\",\"d\"]\nb:[\"part\",\"part-1\",\"d\"]\nc:[\"pattern\",\"selenium-python-first-selenium-script\",\"d\"]\nd:[\"mode\",\"challenge\",\"oc\"]\n15:[]\n"])</script><script>self.__next_f.push([1,"0:[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/b133bdac07c7940e.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"$L5\",null,{\"buildId\":\"hN8t5By7h5nzsrdSose07\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/en/codefly/learn/selenium-python/part-1/selenium-python-first-selenium-script/challenge\",\"initialTree\":[\"\",{\"children\":[[\"lang\",\"en\",\"d\"],{\"children\":[\"codefly\",{\"children\":[\"learn\",{\"children\":[[\"subject\",\"selenium-python\",\"d\"],{\"children\":[[\"part\",\"part-1\",\"d\"],{\"children\":[[\"pattern\",\"selenium-python-first-selenium-script\",\"d\"],{\"children\":[[\"mode\",\"challenge\",\"oc\"],{\"children\":[\"__PAGE__\",{}]}]}]}]}]}]}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[[\"lang\",\"en\",\"d\"],{\"children\":[\"codefly\",{\"children\":[\"learn\",{\"children\":[[\"subject\",\"selenium-python\",\"d\"],{\"children\":[[\"part\",\"part-1\",\"d\"],{\"children\":[[\"pattern\",\"selenium-python-first-selenium-script\",\"d\"],{\"children\":[[\"mode\",\"challenge\",\"oc\"],{\"children\":[\"__PAGE__\",{},[[\"$L6\",\"$L7\"],null],null]},[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"$9\",\"children\",\"codefly\",\"children\",\"learn\",\"children\",\"$a\",\"children\",\"$b\",\"children\",\"$c\",\"children\",\"$d\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Le\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/837a603cb1a59856.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/725c7861d1898ba8.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/caf3ca742c7945f9.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]]}],null]},[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"$9\",\"children\",\"codefly\",\"children\",\"learn\",\"children\",\"$a\",\"children\",\"$b\",\"children\",\"$c\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Le\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"$9\",\"children\",\"codefly\",\"children\",\"learn\",\"children\",\"$a\",\"children\",\"$b\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Le\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"$9\",\"children\",\"codefly\",\"children\",\"learn\",\"children\",\"$a\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Le\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"$9\",\"children\",\"codefly\",\"children\",\"learn\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Le\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"$9\",\"children\",\"codefly\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Le\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"$9\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Le\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"name\":\"theme-color\",\"content\":\"#5f56fe\"}],[\"$\",\"meta\",null,{\"name\":\"msapplication-TileColor\",\"content\":\"#5f56fe\"}],[\"$\",\"$Lf\",null,{\"src\":\"https://www.googletagmanager.com/gtag/js?id=G-N2NY2DMMDW\",\"strategy\":\"afterInteractive\"}],[\"$\",\"$Lf\",null,{\"id\":\"google-analytics\",\"strategy\":\"afterInteractive\",\"children\":\"\\n window.dataLayer = window.dataLayer || [];\\n function gtag(){dataLayer.push(arguments);}\\n gtag('js', new Date());\\n gtag('config', 'G-N2NY2DMMDW', {\\n page_path: window.location.pathname,\\n });\\n \"}],[\"$\",\"script\",null,{\"async\":true,\"src\":\"https://www.googletagmanager.com/gtag/js?id=AW-17928224938\"}],[\"$\",\"$Lf\",null,{\"children\":\"\\n window.dataLayer = window.dataLayer || [];\\n function gtag() {\\n dataLayer.push(arguments);\\n }\\n gtag('js', new Date());\\n gtag('config', 'AW-17928224938');\\n \"}],[\"$\",\"script\",null,{\"data-grow-initializer\":\"\",\"suppressHydrationWarning\":true,\"dangerouslySetInnerHTML\":{\"__html\":\"!(function(){window.growMe||((window.growMe=function(e){window.growMe._.push(e);}),(window.growMe._=[]));var e=document.createElement(\\\"script\\\");(e.type=\\\"text/javascript\\\"),(e.src=\\\"https://faves.grow.me/main.js\\\"),(e.defer=!0),e.setAttribute(\\\"data-grow-faves-site-id\\\",\\\"U2l0ZTo0MGIxZDBlZC0wNzdlLTQ0NjgtOThmOC1kNDYyZGMwM2IwMWY=\\\");var t=document.getElementsByTagName(\\\"script\\\")[0];t.parentNode.insertBefore(e,t);})();\"}}],[\"$\",\"$Lf\",null,{\"src\":\"//scripts.scriptwrapper.com/tags/40b1d0ed-077e-4468-98f8-d462dc03b01f.js\",\"strategy\":\"afterInteractive\",\"data-noptimize\":\"1\",\"data-cfasync\":\"false\"}],[\"$\",\"script\",null,{\"type\":\"application/ld+json\",\"suppressHydrationWarning\":true,\"dangerouslySetInnerHTML\":{\"__html\":\"{\\\"@context\\\":\\\"https://schema.org\\\",\\\"@type\\\":\\\"WebApplication\\\",\\\"name\\\":\\\"Leyaa.ai\\\",\\\"description\\\":\\\"Leyaa.ai builds learning intelligence that understands how you learn - guiding what to study, how to practice, and when to move forward.\\\",\\\"url\\\":\\\"https://leyaa.ai\\\",\\\"applicationCategory\\\":\\\"EducationalApplication\\\",\\\"operatingSystem\\\":\\\"Web\\\",\\\"offers\\\":{\\\"@type\\\":\\\"Offer\\\",\\\"price\\\":\\\"0\\\",\\\"priceCurrency\\\":\\\"USD\\\"},\\\"creator\\\":{\\\"@type\\\":\\\"Organization\\\",\\\"name\\\":\\\"Leyaa.ai\\\"}}\"}}],[\"$\",\"link\",null,{\"href\":\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css\",\"rel\":\"stylesheet\",\"integrity\":\"sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB\",\"crossOrigin\":\"anonymous\"}],[\"$\",\"$Lf\",null,{\"id\":\"clarity-script\",\"strategy\":\"afterInteractive\",\"dangerouslySetInnerHTML\":{\"__html\":\"\\n (function(c,l,a,r,i,t,y){\\n c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};\\n t=l.createElement(r);t.async=1;t.src=\\\"https://www.clarity.ms/tag/\\\"+i;\\n y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);\\n })(window, document, \\\"clarity\\\", \\\"script\\\", \\\"w4gxh6rdmh\\\");\\n \"}}]]}],[\"$\",\"body\",null,{\"children\":[[\"$\",\"$L10\",null,{\"containerStyle\":{\"top\":70}}],[\"$\",\"div\",null,{\"className\":\"bg-grid\"}],[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Le\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[\"$\",\"$L11\",null,{}],\"notFoundStyles\":[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/250d3fff07338fa3.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],\"styles\":null}],[\"$\",\"$L12\",null,{}],\" \"]}]]}],null],null],\"couldBeIntercepted\":false,\"initialHead\":[false,\"$L13\"],\"globalErrorComponent\":\"$14\",\"missingSlots\":\"$W15\"}]]\n"])</script><script>self.__next_f.push([1,"17:I[51766,[\"8422\",\"static/chunks/66ec4792-a0fc378024be0c7b.js\",\"522\",\"static/chunks/94730671-fd9628eddbd5107b.js\",\"7240\",\"static/chunks/53c13509-506edbde2b5b3f55.js\",\"7699\",\"static/chunks/8e1d74a4-a085c2fbc868135a.js\",\"5706\",\"static/chunks/9c4e2130-11ecd4bfc78e4568.js\",\"1779\",\"static/chunks/0e762574-6b3bda54d2fd2e14.js\",\"6648\",\"static/chunks/6648-fff0cf0e0a1f8d25.js\",\"3463\",\"static/chunks/3463-09ee572e3d7819a2.js\",\"4889\",\"static/chunks/4889-956a916919971629.js\",\"9985\",\"static/chunks/9985-b39235669d2563e2.js\",\"7627\",\"static/chunks/7627-224bb765a4decf1d.js\",\"7652\",\"static/chunks/7652-412e201fe52797ee.js\",\"8935\",\"static/chunks/8935-c1c159349bf7da40.js\",\"9663\",\"static/chunks/9663-fdcd080af3916e3e.js\",\"7029\",\"static/chunks/app/%5Blang%5D/codefly/learn/%5Bsubject%5D/%5Bpart%5D/%5Bpattern%5D/%5B%5B...mode%5D%5D/page-1fc9c577a9450e06.js\"],\"default\"]\n16:T501,{\"@context\":\"https://schema.org\",\"@type\":\"LearningResource\",\"name\":\"First Selenium script in Selenium Python - Practice Problems \u0026 Coding Challenges\",\"description\":\"Solve First Selenium script in Selenium Python coding challenges from easy to hard. Practice problems with hints, solutions, and step-by-step explanations. Free practice.\",\"url\":\"https://leyaa.ai/codefly/learn/selenium-python/part-1/selenium-python-first-selenium-script/challenge\",\"learningResourceType\":\"Quiz\",\"programmingLanguage\":\"Selenium Python\",\"inLanguage\":\"en\",\"isAccessibleForFree\":true,\"teaches\":\"First Selenium script in Selenium Python - Practice Problems \u0026 Coding Challenges\",\"provider\":{\"@type\":\"Organization\",\"url\":\"https://leyaa.ai\"},\"educationalLevel\":\"Beginner to Advanced\",\"breadcrumb\":{\"@type\":\"BreadcrumbList\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https://leyaa.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"First Selenium script in Selenium Python - Practice Problems \u0026 Coding Challenges\",\"item\":\"https://leyaa.ai/codefly/learn/selenium-python/part-1/selenium-python-first-selenium-script\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Challenge\",\"item\":\"https://le"])</script><script>self.__next_f.push([1,"yaa.ai/codefly/learn/selenium-python/part-1/selenium-python-first-selenium-script/challenge\"}]}}"])</script><script>self.__next_f.push([1,"7:[[[\"$\",\"script\",\"0\",{\"type\":\"application/ld+json\",\"dangerouslySetInnerHTML\":{\"__html\":\"$16\"}}]],[\"$\",\"$L17\",null,{\"subject\":\"selenium-python\",\"dbSubject\":\"selenium_python\",\"part\":\"part-1\",\"pattern\":\"selenium_python_first_selenium_script\",\"modeSlug\":\"challenge\",\"lang\":\"en\",\"internalLinks\":[{\"code\":\"LMC\",\"slug\":\"\",\"label\":\"📖 Learn\",\"href\":\"/codefly/learn/selenium-python/part-1/selenium-python-first-selenium-script\",\"active\":false},{\"code\":\"LMCWHY\",\"slug\":\"why\",\"label\":\"💡 Why Learn This\",\"href\":\"/codefly/learn/selenium-python/part-1/selenium-python-first-selenium-script/why\",\"active\":false},{\"code\":\"DLM\",\"slug\":\"deep\",\"label\":\"💡 Deep Learn Mode\",\"href\":\"/codefly/learn/selenium-python/part-1/selenium-python-first-selenium-script/deep\",\"active\":false},{\"code\":\"TMC\",\"slug\":\"try\",\"label\":\"✏️ Try It\",\"href\":\"/codefly/learn/selenium-python/part-1/selenium-python-first-selenium-script/try\",\"active\":false},{\"code\":\"VMC\",\"slug\":\"visualize\",\"label\":\"👁 Visualize\",\"href\":\"/codefly/learn/selenium-python/part-1/selenium-python-first-selenium-script/visualize\",\"active\":false},{\"code\":\"TCM\",\"slug\":\"complexity\",\"label\":\"⏱ Complexity\",\"href\":\"/codefly/learn/selenium-python/part-1/selenium-python-first-selenium-script/complexity\",\"active\":false},{\"code\":\"CMC\",\"slug\":\"challenge\",\"label\":\"🏆 Challenge\",\"href\":\"/codefly/learn/selenium-python/part-1/selenium-python-first-selenium-script/challenge\",\"active\":true},{\"code\":\"PMC\",\"slug\":\"project\",\"label\":\"📁 Project\",\"href\":\"/codefly/learn/selenium-python/part-1/selenium-python-first-selenium-script/project\",\"active\":false},{\"code\":\"RMC\",\"slug\":\"review\",\"label\":\"🧠 Quick Review\",\"href\":\"/codefly/learn/selenium-python/part-1/selenium-python-first-selenium-script/review\",\"active\":false}],\"isLoggedIn\":false,\"seoH1\":\"First Selenium script in Selenium Python - Practice Problems \u0026 Coding Challenges\",\"contentData\":{\"pattern_id\":\"selenium_python_first_selenium_script\",\"metadata\":{\"slot_map\":{\"LMCWHY\":\"LMCWHY\",\"LMC\":\"LMC\",\"TMC\":\"TMC\",\"CMC\":\"CMC\",\"RMC\":\"RMC\",\"VMC\":\"EXC\",\"TCM\":\"TFW\",\"PMC\":\"AUT\",\"DLM\":\"DLM\"}},\"modes\":{\"CMC\":{\"topic\":\"First Selenium script\",\"mode\":\"CMC_v4.2\",\"language\":\"selenium_python\",\"content_type\":\"Software Testing \u0026 QA\",\"challenges\":[{\"id\":\"c1\",\"type\":\"code_output\",\"difficulty\":\"intermediate\",\"title\":\"What is the output of this Selenium script?\",\"prompt\":\"Consider this Selenium Python script that opens a webpage and prints the page title. What will be printed?\",\"code\":\"from selenium import webdriver\\nfrom selenium.webdriver.chrome.service import Service\\nfrom selenium.webdriver.common.by import By\\n\\nservice = Service('/path/to/chromedriver')\\ndriver = webdriver.Chrome(service=service)\\ndriver.get('https://example.com')\\nprint(driver.title)\\ndriver.quit()\",\"ordering_targets\":[],\"options\":{\"A\":\"Example Domain\",\"B\":\"https://example.com\",\"C\":\"Page not found\",\"D\":\"SyntaxError\"},\"correct_answer\":[\"A\"],\"time_limit_seconds\":120,\"attempts_allowed\":2,\"hint\":\"The title is the text inside the \u003ctitle\u003e tag of the webpage.\",\"explanation\":\"The script opens https://example.com and prints the page title, which is 'Example Domain'.\",\"solution\":\"The output is 'Example Domain' because that is the title of the page at https://example.com.\",\"tags\":[\"selenium\",\"webdriver\",\"page title\",\"basic\"]},{\"id\":\"c2\",\"type\":\"locator\",\"difficulty\":\"intermediate\",\"title\":\"Which locator correctly finds the login button by its ID?\",\"prompt\":\"You want to click a login button with the HTML: \u003cbutton id=\\\"loginBtn\\\"\u003eLogin\u003c/button\u003e. Which Selenium locator is correct?\",\"code\":\"\",\"ordering_targets\":[],\"options\":{\"A\":\"driver.find_element(By.CLASS_NAME, 'loginBtn')\",\"B\":\"driver.find_element(By.ID, 'loginBtn')\",\"C\":\"driver.find_element(By.NAME, 'loginBtn')\",\"D\":\"driver.find_element(By.TAG_NAME, 'loginBtn')\"},\"correct_answer\":[\"B\"],\"time_limit_seconds\":90,\"attempts_allowed\":2,\"hint\":\"ID is a unique attribute and should be accessed with By.ID.\",\"explanation\":\"The button has an ID 'loginBtn', so By.ID with 'loginBtn' is the correct locator.\",\"solution\":\"Use driver.find_element(By.ID, 'loginBtn') to locate the button by its ID.\",\"tags\":[\"selenium\",\"locator\",\"By.ID\",\"basic\"]},{\"id\":\"c3\",\"type\":\"assertion\",\"difficulty\":\"advanced\",\"title\":\"Which assertion correctly verifies the page title is 'Dashboard'?\",\"prompt\":\"After logging in, you want to check the page title is exactly 'Dashboard'. Which assertion is correct?\",\"code\":\"title = driver.title\",\"ordering_targets\":[],\"options\":{\"A\":\"assert title \u003e 'Dashboard'\",\"B\":\"assert 'Dashboard' in title\",\"C\":\"assert title == 'Dashboard'\",\"D\":\"assert title != 'Dashboard'\"},\"correct_answer\":[\"C\"],\"time_limit_seconds\":90,\"attempts_allowed\":2,\"hint\":\"Use equality to check exact match.\",\"explanation\":\"To verify the title is exactly 'Dashboard', use assert title == 'Dashboard'.\",\"solution\":\"assert title == 'Dashboard' ensures the title matches exactly.\",\"tags\":[\"assertion\",\"selenium\",\"page title\",\"verification\"]},{\"id\":\"c4\",\"type\":\"debug\",\"difficulty\":\"advanced\",\"title\":\"What error does this Selenium script raise?\",\"prompt\":\"This script tries to find an element but has a mistake. What error occurs?\",\"code\":\"from selenium import webdriver\\nfrom selenium.webdriver.chrome.service import Service\\nfrom selenium.webdriver.common.by import By\\n\\nservice = Service('/path/to/chromedriver')\\ndriver = webdriver.Chrome(service=service)\\ndriver.get('https://example.com')\\nelement = driver.find_element(By.ID, 'nonexistent')\\ndriver.quit()\",\"ordering_targets\":[],\"options\":{\"A\":\"selenium.common.exceptions.NoSuchElementException\",\"B\":\"AttributeError\",\"C\":\"TimeoutException\",\"D\":\"SyntaxError\"},\"correct_answer\":[\"A\"],\"time_limit_seconds\":120,\"attempts_allowed\":2,\"hint\":\"The element ID does not exist on the page.\",\"explanation\":\"Trying to find an element that does not exist raises NoSuchElementException.\",\"solution\":\"The script raises selenium.common.exceptions.NoSuchElementException because the element with ID 'nonexistent' is not found.\",\"tags\":[\"selenium\",\"exceptions\",\"NoSuchElementException\",\"debug\"]},{\"id\":\"c5\",\"type\":\"framework\",\"difficulty\":\"expert\",\"title\":\"Which code snippet correctly waits for an element to be clickable before clicking?\",\"prompt\":\"You want to wait up to 10 seconds for a button with ID 'submitBtn' to be clickable, then click it. Which code is correct?\",\"code\":\"\",\"ordering_targets\":[],\"options\":{\"A\":\"driver.implicitly_wait(10)\\nbutton = driver.find_element(By.ID, 'submitBtn')\\nbutton.click()\",\"B\":\"from selenium.webdriver.support.ui import WebDriverWait\\nfrom selenium.webdriver.support import expected_conditions as EC\\nwait = WebDriverWait(driver, 10)\\nbutton = wait.until(EC.presence_of_element_located((By.ID, 'submitBtn')))\\nbutton.click()\",\"C\":\"import time\\ntime.sleep(10)\\nbutton = driver.find_element(By.ID, 'submitBtn')\\nbutton.click()\",\"D\":\"from selenium.webdriver.support.ui import WebDriverWait\\nfrom selenium.webdriver.support import expected_conditions as EC\\nwait = WebDriverWait(driver, 10)\\nbutton = wait.until(EC.element_to_be_clickable((By.ID, 'submitBtn')))\\nbutton.click()\"},\"correct_answer\":[\"D\"],\"time_limit_seconds\":150,\"attempts_allowed\":2,\"hint\":\"Use explicit wait for element to be clickable.\",\"explanation\":\"Option D uses explicit wait with element_to_be_clickable condition, which waits until the button is ready to be clicked.\",\"solution\":\"Use WebDriverWait with EC.element_to_be_clickable to wait and then click the button.\",\"tags\":[\"selenium\",\"explicit wait\",\"WebDriverWait\",\"best practice\"]}],\"achievement_badge\":{\"name\":\"Selenium Script Master\",\"condition\":\"complete_all_5\"},\"metadata\":{\"version\":\"4.2\",\"content_type\":\"testing\",\"total_challenges\":5,\"estimated_time_minutes\":20}}},\"subject\":\"selenium_python\",\"title\":\"First Selenium script\"},\"syllabusData\":{\"part\":\"part-1\",\"subject\":\"selenium_python\",\"difficulty\":\"beginner\",\"metadata\":{\"total_topics\":6,\"total_patterns\":50,\"patterns_with_content\":50,\"created_at\":\"2026-03-03T15:53:15.727324Z\",\"version\":\"4.2\",\"upload_tool\":\"upload_to_mongo.py v2.0\"},\"part_title\":\"Foundations\",\"subjectTitle\":\"Selenium Python\",\"topics\":[{\"topic_id\":\"selenium_python_p1_t1\",\"title\":\"Selenium Basics and Setup\",\"order\":1,\"pattern_count\":7,\"patterns\":[{\"pattern_id\":\"selenium_python_why_selenium_is_the_standard_for_web_automation\",\"title\":\"Why Selenium is the standard for web automation\",\"order\":1,\"has_content\":true},{\"pattern_id\":\"selenium_python_selenium_components_webdriver_grid_ide\",\"title\":\"Selenium components (WebDriver, Grid, IDE)\",\"order\":2,\"has_content\":true},{\"pattern_id\":\"selenium_python_selenium_vs_cypress_vs_playwright_comparison\",\"title\":\"Selenium vs Cypress vs Playwright comparison\",\"order\":3,\"has_content\":true},{\"pattern_id\":\"selenium_python_python_environment_setup\",\"title\":\"Python environment setup\",\"order\":4,\"has_content\":true},{\"pattern_id\":\"selenium_python_selenium_installation_pip_install_selenium\",\"title\":\"Selenium installation (pip install selenium)\",\"order\":5,\"has_content\":true},{\"pattern_id\":\"selenium_python_webdriver_setup_chromedriver_geckodriver\",\"title\":\"WebDriver setup (ChromeDriver, GeckoDriver)\",\"order\":6,\"has_content\":true},{\"pattern_id\":\"selenium_python_first_selenium_script\",\"title\":\"First Selenium script\",\"order\":7,\"has_content\":true}]},{\"topic_id\":\"selenium_python_p1_t2\",\"title\":\"Browser Navigation\",\"order\":2,\"pattern_count\":7,\"patterns\":[{\"pattern_id\":\"selenium_python_why_browser_control_is_the_foundation\",\"title\":\"Why browser control is the foundation\",\"order\":1,\"has_content\":true},{\"pattern_id\":\"selenium_python_opening_urls_get\",\"title\":\"Opening URLs (get)\",\"order\":2,\"has_content\":true},{\"pattern_id\":\"selenium_python_page_title_and_url_retrieval\",\"title\":\"Page title and URL retrieval\",\"order\":3,\"has_content\":true},{\"pattern_id\":\"selenium_python_back_forward_and_refresh\",\"title\":\"Back, forward, and refresh\",\"order\":4,\"has_content\":true},{\"pattern_id\":\"selenium_python_maximize_and_minimize_window\",\"title\":\"Maximize and minimize window\",\"order\":5,\"has_content\":true},{\"pattern_id\":\"selenium_python_window_size_control\",\"title\":\"Window size control\",\"order\":6,\"has_content\":true},{\"pattern_id\":\"selenium_python_closing_browser_close_vs_quit\",\"title\":\"Closing browser (close vs quit)\",\"order\":7,\"has_content\":true}]},{\"topic_id\":\"selenium_python_p1_t3\",\"title\":\"Locating Elements\",\"order\":3,\"pattern_count\":10,\"patterns\":[{\"pattern_id\":\"selenium_python_why_element_location_is_the_core_skill\",\"title\":\"Why element location is the core skill\",\"order\":1,\"has_content\":true},{\"pattern_id\":\"selenium_python_find_element_by_id\",\"title\":\"Find element by ID\",\"order\":2,\"has_content\":true},{\"pattern_id\":\"selenium_python_find_element_by_name\",\"title\":\"Find element by name\",\"order\":3,\"has_content\":true},{\"pattern_id\":\"selenium_python_find_element_by_class_name\",\"title\":\"Find element by class name\",\"order\":4,\"has_content\":true},{\"pattern_id\":\"selenium_python_find_element_by_tag_name\",\"title\":\"Find element by tag name\",\"order\":5,\"has_content\":true},{\"pattern_id\":\"selenium_python_find_element_by_link_text\",\"title\":\"Find element by link text\",\"order\":6,\"has_content\":true},{\"pattern_id\":\"selenium_python_find_element_by_partial_link_text\",\"title\":\"Find element by partial link text\",\"order\":7,\"has_content\":true},{\"pattern_id\":\"selenium_python_find_element_by_css_selector\",\"title\":\"Find element by CSS selector\",\"order\":8,\"has_content\":true},{\"pattern_id\":\"selenium_python_find_element_by_xpath\",\"title\":\"Find element by XPath\",\"order\":9,\"has_content\":true},{\"pattern_id\":\"selenium_python_finding_multiple_elements\",\"title\":\"Finding multiple elements\",\"order\":10,\"has_content\":true}]},{\"topic_id\":\"selenium_python_p1_t4\",\"title\":\"XPath and CSS Selectors\",\"order\":4,\"pattern_count\":9,\"patterns\":[{\"pattern_id\":\"selenium_python_why_mastering_selectors_ensures_reliability\",\"title\":\"Why mastering selectors ensures reliability\",\"order\":1,\"has_content\":true},{\"pattern_id\":\"selenium_python_absolute_vs_relative_xpath\",\"title\":\"Absolute vs relative XPath\",\"order\":2,\"has_content\":true},{\"pattern_id\":\"selenium_python_xpath_with_attributes\",\"title\":\"XPath with attributes\",\"order\":3,\"has_content\":true},{\"pattern_id\":\"selenium_python_xpath_with_text\",\"title\":\"XPath with text()\",\"order\":4,\"has_content\":true},{\"pattern_id\":\"selenium_python_xpath_axes_parent_child_sibling\",\"title\":\"XPath axes (parent, child, sibling)\",\"order\":5,\"has_content\":true},{\"pattern_id\":\"selenium_python_xpath_with_contains_and_startswith\",\"title\":\"XPath with contains and starts-with\",\"order\":6,\"has_content\":true},{\"pattern_id\":\"selenium_python_css_selector_syntax\",\"title\":\"CSS selector syntax\",\"order\":7,\"has_content\":true},{\"pattern_id\":\"selenium_python_css_attribute_selectors\",\"title\":\"CSS attribute selectors\",\"order\":8,\"has_content\":true},{\"pattern_id\":\"selenium_python_css_pseudoclasses_for_selection\",\"title\":\"CSS pseudo-classes for selection\",\"order\":9,\"has_content\":true}]},{\"topic_id\":\"selenium_python_p1_t5\",\"title\":\"Interacting with Elements\",\"order\":5,\"pattern_count\":9,\"patterns\":[{\"pattern_id\":\"selenium_python_why_element_interaction_drives_test_scenarios\",\"title\":\"Why element interaction drives test scenarios\",\"order\":1,\"has_content\":true},{\"pattern_id\":\"selenium_python_click_actions\",\"title\":\"Click actions\",\"order\":2,\"has_content\":true},{\"pattern_id\":\"selenium_python_typing_text_send_keys\",\"title\":\"Typing text (send_keys)\",\"order\":3,\"has_content\":true},{\"pattern_id\":\"selenium_python_clearing_input_fields\",\"title\":\"Clearing input fields\",\"order\":4,\"has_content\":true},{\"pattern_id\":\"selenium_python_submitting_forms\",\"title\":\"Submitting forms\",\"order\":5,\"has_content\":true},{\"pattern_id\":\"selenium_python_getting_element_text\",\"title\":\"Getting element text\",\"order\":6,\"has_content\":true},{\"pattern_id\":\"selenium_python_getting_element_attributes\",\"title\":\"Getting element attributes\",\"order\":7,\"has_content\":true},{\"pattern_id\":\"selenium_python_checking_element_state_displayed_enabled_selected\",\"title\":\"Checking element state (displayed, enabled, selected)\",\"order\":8,\"has_content\":true},{\"pattern_id\":\"selenium_python_element_screenshot\",\"title\":\"Element screenshot\",\"order\":9,\"has_content\":true}]},{\"topic_id\":\"selenium_python_p1_t6\",\"title\":\"Waits and Synchronization\",\"order\":6,\"pattern_count\":8,\"patterns\":[{\"pattern_id\":\"selenium_python_why_synchronization_prevents_flaky_tests\",\"title\":\"Why synchronization prevents flaky tests\",\"order\":1,\"has_content\":true},{\"pattern_id\":\"selenium_python_implicit_waits\",\"title\":\"Implicit waits\",\"order\":2,\"has_content\":true},{\"pattern_id\":\"selenium_python_explicit_waits_webdriverwait\",\"title\":\"Explicit waits (WebDriverWait)\",\"order\":3,\"has_content\":true},{\"pattern_id\":\"selenium_python_expected_conditions\",\"title\":\"Expected conditions\",\"order\":4,\"has_content\":true},{\"pattern_id\":\"selenium_python_fluent_waits\",\"title\":\"Fluent waits\",\"order\":5,\"has_content\":true},{\"pattern_id\":\"selenium_python_custom_wait_conditions\",\"title\":\"Custom wait conditions\",\"order\":6,\"has_content\":true},{\"pattern_id\":\"selenium_python_timesleep_vs_proper_waits\",\"title\":\"Time.sleep vs proper waits\",\"order\":7,\"has_content\":true},{\"pattern_id\":\"selenium_python_staleelementreferenceexception_handling\",\"title\":\"StaleElementReferenceException handling\",\"order\":8,\"has_content\":true}]}]},\"modeCode\":\"CMC\",\"productId\":\"codefly\"}]]\n"])</script><script>self.__next_f.push([1,"13:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"First Selenium script in Selenium Python Practice Problems - Coding Exercises | Leyaa.ai\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Solve First Selenium script in Selenium Python coding challenges from easy to hard. Practice problems with hints, solutions, and step-by-step explanations. Free practice.\"}],[\"$\",\"meta\",\"4\",{\"name\":\"author\",\"content\":\"Leyaa.ai\"}],[\"$\",\"link\",\"5\",{\"rel\":\"manifest\",\"href\":\"/manifest.json\",\"crossOrigin\":\"use-credentials\"}],[\"$\",\"meta\",\"6\",{\"name\":\"keywords\",\"content\":\"learning intelligence,AI learning,personalized learning,adaptive learning,study guide,exam preparation,learning platform,education technology,edtech,smart learning\"}],[\"$\",\"meta\",\"7\",{\"name\":\"creator\",\"content\":\"Leyaa.ai\"}],[\"$\",\"meta\",\"8\",{\"name\":\"publisher\",\"content\":\"Leyaa.ai\"}],[\"$\",\"meta\",\"9\",{\"name\":\"robots\",\"content\":\"index, follow\"}],[\"$\",\"meta\",\"10\",{\"name\":\"googlebot\",\"content\":\"index, follow, max-image-preview:large, max-snippet:-1\"}],[\"$\",\"meta\",\"11\",{\"name\":\"content-language\",\"content\":\"en\"}],[\"$\",\"link\",\"12\",{\"rel\":\"canonical\",\"href\":\"https://leyaa.ai/codefly/learn/selenium-python/part-1/selenium-python-first-selenium-script/challenge\"}],[\"$\",\"link\",\"13\",{\"rel\":\"alternate\",\"hrefLang\":\"en\",\"href\":\"https://leyaa.ai/codefly/learn/selenium-python/part-1/selenium-python-first-selenium-script/challenge\"}],[\"$\",\"link\",\"14\",{\"rel\":\"alternate\",\"hrefLang\":\"x-default\",\"href\":\"https://leyaa.ai/codefly/learn/selenium-python/part-1/selenium-python-first-selenium-script/challenge\"}],[\"$\",\"meta\",\"15\",{\"property\":\"og:title\",\"content\":\"First Selenium script in Selenium Python Practice Problems - Coding Exercises | Leyaa.ai\"}],[\"$\",\"meta\",\"16\",{\"property\":\"og:description\",\"content\":\"Solve First Selenium script in Selenium Python coding challenges from easy to hard. Practice problems with hints, solutions, and step-by-step explanations. Free practice.\"}],[\"$\",\"meta\",\"17\",{\"property\":\"og:url\",\"content\":\"https://leyaa.ai/codefly/learn/selenium-python/part-1/selenium-python-first-selenium-script/challenge\"}],[\"$\",\"meta\",\"18\",{\"property\":\"og:locale\",\"content\":\"en_US\"}],[\"$\",\"meta\",\"19\",{\"property\":\"og:image\",\"content\":\"https://leyaa.ai/Assets/metaImages/leyaa-preview-image.png\"}],[\"$\",\"meta\",\"20\",{\"property\":\"og:image:width\",\"content\":\"1200\"}],[\"$\",\"meta\",\"21\",{\"property\":\"og:image:height\",\"content\":\"630\"}],[\"$\",\"meta\",\"22\",{\"property\":\"og:image:alt\",\"content\":\"First Selenium script in Selenium Python Practice Problems - Coding Exercises\"}],[\"$\",\"meta\",\"23\",{\"property\":\"og:type\",\"content\":\"article\"}],[\"$\",\"meta\",\"24\",{\"name\":\"twitter:card\",\"content\":\"summary_large_image\"}],[\"$\",\"meta\",\"25\",{\"name\":\"twitter:site\",\"content\":\"@leyaaai\"}],[\"$\",\"meta\",\"26\",{\"name\":\"twitter:creator\",\"content\":\"@leyaaai\"}],[\"$\",\"meta\",\"27\",{\"name\":\"twitter:title\",\"content\":\"First Selenium script in Selenium Python Practice Problems - Coding Exercises | Leyaa.ai\"}],[\"$\",\"meta\",\"28\",{\"name\":\"twitter:description\",\"content\":\"Solve First Selenium script in Selenium Python coding challenges from easy to hard. Practice problems with hints, solutions, and step-by-step explanations. Free practice.\"}],[\"$\",\"meta\",\"29\",{\"name\":\"twitter:image\",\"content\":\"https://leyaa.ai/Assets/metaImages/leyaa-preview-image.png\"}],[\"$\",\"link\",\"30\",{\"rel\":\"icon\",\"href\":\"/leyaa-logo.png\"}],[\"$\",\"link\",\"31\",{\"rel\":\"apple-touch-icon\",\"href\":\"/leyaa-logo.png\"}],[\"$\",\"meta\",\"32\",{\"name\":\"next-size-adjust\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\n"])</script></body></html>