For faster navigation, this Iframe is preloading the Wikiwand page for Selenium.

Selenium

Vikipediya, azad ensiklopediya

Selenium
Sonuncu versiyası
Əməliyyat sistemi Microsoft Windows[2]
selenium.dev

Selenium veb proqramlarını sınamaq üçün istifadə edilən proqramdır.Selenium vasitəsilə yeni bir skript dili öyrənmədən asanlıqla veb proqramlar yazılır və test edilir.C#, Groovy,Java, Perl, PHP, Python, Ruby və Scala da daxil olmaqla bir sıra populyar proqramlaşdırma dillərində testlər yazmaq üçün bir test domeni ilə (Selenese) təmin edilib. Selenium Windows, Linux və macOS-da işləyir. Apache Lisenziyası 2.0 altında yayımlanan açıq mənbəli bir proqramdır.

Selenium, əvvəlcə Ceyson Huqins tərəfindən 2004-cü ildə ThoughtWorks-a daxili bir vasitə olaraq hazırlanmışdır. Paul Hammant komandaya qoşulub daha sonra "Selenium Remote Control" (RC) halına gələcək ikinci iş rejiminin inkişafına rəhbərlik etmədən əvvəl Huqins-ə ThoughtWorks-də digər proqramçılar və testçilər qatıldı. Alət həmin il açıq idi.

2005-ci ildə Dan Fabuliç və Nelson Sproul (Pat Laytbodinin köməyi ilə) Selenium-RC-ni ən yaxşı şeyə çevirəcək bir sıra təklifləri qəbul etdi.

Seleniumda Vikipediyaya giriş

[redaktə | mənbəni redaktə et]
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
import time
browser = webdriver.Firefox() //brauzerə görə dəyişir
browser.get("https://en.wikipedia.org/")
login_button = browser.find_element_by_xpath("/html/body/div[5]/div[1]/nav/div/ul/li[5]/a")
login_button.click()
time.sleep(2)
username = browser.find_element_by_name("wpName")
username.send_keys("İstifadəçi adı")
password = browser.find_element_by_name("wpPassword")
password.send_keys("İstifadəçi şifrəsi")
buttonforlogin = browser.find_element_by_id("wpLoginAttempt")
buttonforlogin.click()

Xarici keçidlər

[redaktə | mənbəni redaktə et]
{{bottomLinkPreText}} {{bottomLinkText}}
Selenium
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?