Notes
![]() ![]() Notes - notes.io |
public static By username = By.Id("Username");
public static By password = By.Id("Password");
public static By clickEnter = By.ClassName("Lbutton");
public static By clicksend = By.Id("sendBtn");
public static By clickaccounts = By.XPath("//*[@class='icon Bgicon_hesap_pasif']");
public static By clickopenaccounts = By.XPath("//*[@class='icon Bgicon_arti']");
public static By accountsName = By.Id("multiBranchform_name");
public static By moneyDropdown = By.Name("multiBranchform_currency");
public static By clickcontinue = By.XPath("//button[@class='button']");
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Support;
using OpenQA.Selenium.Support.UI;
using System.Threading;
using System.Text;
using OpenQA.Selenium.Interactions;
using Microsoft.VisualStudio.TestTools;
using NUnit.Framework;
using System.Linq;
namespace AutomationBurgan
{
[TestClass]
public static class ControlProperties
{
public static By username = By.XPath("//*[@id='Username']");
public static By password = By.XPath("//*[@id='Password']");
public static By clickEnter = By.XPath("//*[@id='form']/div[1]/button");
public static By clicksend = By.XPath("//button[@id='sendBtn']");
public static By clickaccounts = By.XPath("//a[text()[contains(.,'HESAPLAR')]]");
public static By clickopenaccounts = By.XPath("//a[@routerlink='/hesaplar/checking/new']");
public static By accountsName = By.XPath("//*[@id='multiBranchform_name']");
public static By moneyDropdown = By.XPath("//*[@id='multiBranchform_currency']");
public static By clickcontinue = By.XPath("/html/body/app-root/internet-banking-dashboard/div/div/div/div/checking-account-new/div/div[2]/div/form/div/button");
[TestClass]
public class PageObjectModelMethods
{
IWebDriver webDriver;
public PageObjectModelMethods(IWebDriver driver)
{
this.webDriver = driver;
}
public void Username(string User)
{
webDriver.FindElement(ControlProperties.username).Clear();
webDriver.FindElement(ControlProperties.username).SendKeys(User);
WaitTime();
}
public void Password(string userpassword)
{
webDriver.FindElement(ControlProperties.password).Clear();
webDriver.FindElement(ControlProperties.password).SendKeys(userpassword);
WaitTime();
}
public void ClickEnter()
{
webDriver.FindElement(ControlProperties.clickEnter).Click();
WaitTime();
}
public void Clicksend()
{
webDriver.FindElement(ControlProperties.clicksend).Click();
WaitTime();
}
public void Clickaccounts()
{
webDriver.FindElement(ControlProperties.clickaccounts).Click();
WaitTime();
}
public void Clickopenaccounts()
{
webDriver.FindElement(ControlProperties.clickopenaccounts).Click();
WaitTime();
}
public void AccountsName(string userAccounts)
{
webDriver.FindElement(ControlProperties.accountsName).Clear();
webDriver.FindElement(ControlProperties.accountsName).SendKeys(userAccounts);
WaitTime();
}
public void MoneyDropdown(string countryName)
{
IWebElement MONEYNamee = webDriver.FindElement(ControlProperties.moneyDropdown);
MONEYNamee.Click();
SelectElement select = new SelectElement(MONEYNamee);
select.SelectByValue(countryName);
WaitTime();
}
public void Clickcontinue()
{
webDriver.FindElement(ControlProperties.clickcontinue).Click();
WaitTime();
}
public void WaitTime()
{
WebDriverWait webDriverWait = new WebDriverWait(webDriver, TimeSpan.FromSeconds(10));
}
[TestClass]
public class DriverInitialization
{
IWebDriver WebDriver;
public DriverInitialization()
{
ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.AddArgument("disable-infobars");
WebDriver = new ChromeDriver();
WebDriver.Navigate().GoToUrl("https://clientatlas.burgan.com.tr/burgandijital/");
Thread.Sleep(3000);
WebDriver.Manage().Window.Maximize();
WebDriverWait webDriverWait = new WebDriverWait(WebDriver, TimeSpan.FromSeconds(40));
}
[TestMethod]
public void UserRegisteration()
{
// Four User Login Data.
PageObjectModelMethods register = new PageObjectModelMethods(WebDriver);
register.Username("20428991308");
register.Password("987654");
register.ClickEnter();
register.Clicksend();
register.Clickaccounts();
register.Clickopenaccounts();
register.AccountsName("seda");
register.MoneyDropdown("Türk Lirası");
register.Clickcontinue();
WebDriver.Quit();
}
}
}
}
}
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team