搜索到与相关的文章
编程技术

我的Watir

今天是我第二天搞Watir,写了一段简单的代码:ie.goto("http://130.34.98.11:18080/bssframe");ie.text_field(:id,"STAFF_ID").set("SUPERUSR");ie.text_field(:id,"PASSWORD").set("XXXXXX");ie.button(:id,"bLoginSubmit").click;contentFrame=ie.frame(:id,"content

系统 2019-08-12 09:29:47 2233

各行各业

Timus 1826

#include#include#includeusingnamespacestd;intmain(){vectortimes;intn,min=0,t,t1,t2;cin>>n;for(inti=0;i>t;times.push_back(t);}sort(times.begin(),times.end());for(inti=times.size()-1;i>=

系统 2019-08-12 09:27:40 2233

各行各业

[UVA] 10167 - Birthday Cake

ProblemG.BirthdayCakeBackgroundLucyandLilyaretwins.Todayistheirbirthday.Motherbuysabirthdaycakeforthem.NowweputthecakeontoaDescartescoordinate.Itscenterisat(0,0),andthecake'slengthofradiusis100.Thereare2N(Nisainteger,1<=N<=50)cher

系统 2019-08-12 09:27:32 2233

各行各业

UESTC1565 Smart Typist

UESTC1565SmartTypistTimeLimit:2000msMemoryLimit:65536kBSolved:10Tried:49DescriptionThemostmysteriousorganizationinChaniis“RelatedDepartment”.Itisrelatedtoalmosteverything,andhasbranchesalmosteverywhere.Eventsalwayshaverelationwith

系统 2019-08-12 09:27:21 2233

各行各业

./configure,make,make install的作用

./configure是用来检测你的安装平台的目标特征的。比如它会检测你是不是有CC或GCC,并不是需要CC或GCC,它是个shell脚本。make是用来编译的,它从Makefile中读取指令,然后编译。makeinstall是用来安装的,它也从Makefile中读取指令,安装到指定的位置。makeclean清除编译产生的可执行文件及目标文件(objectfile,*.o)。makedistclean:除了清除可执行文件和目标文件外,把configure所

系统 2019-08-12 09:27:20 2233

各行各业

uboot之board.c源码分析

/lib_arm/board.c主要完成了一些初始化的操作,最重要的是有start_armboot函数_armboot_start地址为多少??/***U-Bootcode:00F00000->00F3C774BSS:->00FC3274*IRQStack:00ebff7c*FIQStack:00ebef7c*/#include#include#include#include

系统 2019-08-12 09:27:14 2233

各行各业

Deploying files using Mapped Folders

WithVisualStudio2010SharePointDeveloperTools,theconceptoftheMappedFolderwasintroduced.AmappedfolderisaconvenientwayfordeveloperstospecifyalocationforanyfilesthatneedtobedeployedontotheSharePointfilesystem,allfromwithininaVisualStu

系统 2019-08-12 09:26:59 2233

各行各业

装箱与值类型虽然很容易理解,但是在实际使用中

publicstructPoint{privateintm_x,m_y;publicPoint(intx,inty){m_x=x;m_y=y;}publicoverridestringToString(){returnstring.Format("{0},{1}",m_x,m_y);}}上面是一个值类型的定义,下面创建一个实例,用在控制台上输出一些信息:Pointp=newPoint(1,1);Console.WriteLine(p);这与Pointp=n

系统 2019-08-12 09:26:59 2233

各行各业

Selenium稳定性 Test

[Test]publicvoidDriverExtension_Wait(){vardriver=newFirefoxDriver();driver.Navigate().GoToUrl("http://www.baidu.com");driver.FindElement(By.Id("kw")).SendKeys("selenium");driver.FindElement(By.Id("su")).Submit();driver.WaitTitleCo

系统 2019-08-12 09:26:51 2233

各行各业

[Selenium]通过Selenium实现在当前浏览器窗口点

publicvoidclickReportIcon(){StringinitialWindowHandle=driver.getWindowHandle();//保存原始的浏览器窗口page.getReportIcon().click();//这个操作之后将会弹出另外一个浏览器窗口Setset=driver.getWindowHandles();set.remove(initialWindowHandle);assertset.size()

系统 2019-08-12 09:26:50 2233