ipad输入框在中间哪

输入框在哪_百度知道
输入框在哪
输入框在哪
我有更好的答案
双击你的好友便弹出输入框
其他类似问题
为您推荐:
输入框的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁百度贴吧输入框在哪?_百度知道
百度贴吧输入框在哪?
如果是在贴吧发帖,登录百度贴吧首页。在上面地址栏里输入要去的贴吧。进入某个贴吧首页后,首先要点击贴吧右方的“我喜欢”关注此贴吧。然后点击上方“发表新帖”鼠标拉到网页最下方即可看到输入框。输入标题跟内容后,点击发表就可以了。
其他类似问题
为您推荐:
先百度进入贴吧
添加你自己喜欢的吧名
也可以自己创造
再点击 你创造的贴吧就能发帖了
呃、、、进随意一个贴吧,你会看到“发贴”二字,点击就可以了,会弹出一个输入框,输入标题、内容,这样就可以发贴了,想看自己发的贴很简单,点击自己的百度名字就可以了、、、
那么说就不可以在自己贴吧里发言喽?
最下面你看看
最下面。。。
在自己的贴吧里面,不是别人的。。。
都一样的亲=w=
百度贴吧的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁在机票预定的页面,输入出发城市和到达城市输入框的时候, 发现直接使用sendkeys不好使,
大部分情况出现输入某城市后没有输入进去, 经过几天的研究,发现可以采取三种方式:
1. 先点击输入框,待弹出 城市选择框之后,点击相应的城市
2. 缓慢输入城市的缩略字母或者城市的名字的部分,会显示出待选城市的下拉列表,进而从下拉列表中选择相应的城市.
3. 直接执行 js脚本对input的value设置为想要的值
首先说一下第三种方式:
JavascriptExecutor js = (JavascriptExecutor)
js.executeScript("arguments[0].value=\"北京\"", from_inpox);
&执行效果最好,
22:35:34.885 INFO - Executing: [execute script: arguments[0].value="北京", [[[ChromeDriver: chrome on XP (be7bffa2af9d1b63f3d111)] -& xpath: //div[@id='js_flighttype_tab_domestic']//input[@name='fromCity']]]])
如上图所演示,两种方式均是用户真实行为。
采取第一种方式:
首先定位到输入框
点击输入框
从弹出的热门城市框中点击所需要的城市
WebElement from_inpox = driver
.findElement(By.xpath("//div[@id='js_flighttype_tab_domestic']//input[@name='fromCity']"));
Actions actions = new Actions(driver);
actions.moveToElement(from_inpox).click().perform();
driver.findElement(By
.xpath("//div[@data-panel='domesticfrom-flight-hotcity-from']//a[@class='js-hotcitylist' and text()='西安']"))
这里我并没有直接使用click, 而是使用Actions,原因是我在对到达城市操作时,发现经常报element can't be clicked这样的错误,
大意是,当要点击到达城市输入框,其实是被上层的元素遮挡,没法使用click方法,但是可以使用Actions的moveToElement方法之后可以click
或者采取滚动到该元素,调用JS
JavascriptExecutor jse = (JavascriptExecutor)
jse.executeScript("arguments[0].scrollIntoView()",element);
之后就可进行click操作.
如果使用第二种方法,就会遇到一个很大的问题:
& 如何定位到JS生成的下拉列表的城市?Firebug定位之前列表就消失!
看上去很难哈,反复尝试无所成, 最后突然想起既然是JS生成的,何不使用浏览器的JS debug功能,设置断点一步一步
果不其然,药到病除。nice job~
思路有了,跟我一起做,点开firebug ,切换到&脚本&界面,首先在输入框输入单字母s,待弹出下拉列表后,单击左侧的插入断点操作
你会发现该下拉框被冻结,不错呦,之后切换到html界面进行定位。
不光是去哪网,像百度输入框也可以采取这样的办法,JS设置断点,js的弹出框,弹出菜单就会冻结.
接下来我的输入就是选择下拉菜单中所需城市:
from_inpox.clear();
from_inpox.sendKeys("BJ");
Thread.sleep(8000);
By bj=new By.ByXPath("//div[@class='qcbox-fixed js-suggestcontainer']//td[contains(text(),'北京')]");
if(isElementPresent(driver,bj,20))
driver.findElement(bj).click();
所要注意的是,下拉菜单中未必弹出那么快,需要做一次等待,在选择下拉菜单的时候需要做一次判断,当然这个判断方法是使用WebDriverWait
* @author Young
* @param driver
* @param by
* @param timeOut
public static boolean isElementPresent(WebDriver driver, final By by, int timeOut) {
WebDriverWait wait = new WebDriverWait(driver, timeOut);
boolean isPresent = false;
isPresent = wait.until(new ExpectedCondition&WebElement&() {
public WebElement apply(WebDriver d) {
return d.findElement(by);
}).isDisplayed();
return isP
依然不够完美,为什么这么说,如果元素没有出现,并不是返回的false而是直接抛异常,并不是期望的,所以修改为findElements
如果找不到,返回List长度必然为0,进而返回false而不是抛出异常
* @author Young
* @param driver
* @param by
* @param timeOut
* @throws InterruptedException
public static boolean isElementPresent(WebDriver driver, final By by,
int timeOut) throws InterruptedException {
boolean isPresent = false;
Thread.sleep(timeOut * 1000);
List&WebElement& we = driver.findElements(by);
if (we.size() != 0) {
isPresent = true;
return isP
测试步骤:
1.选择出发城市-& 北京
& 到达城市-&上海
& 选择今天之后的七天
& 点击search button
2.选择某带&每段航班均需缴纳税费& 的订单
public static void main(String[] args) throws InterruptedException {
WebDriver driver = DriverFactory.getChromeDriver();
driver.get("/");
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);
WebElement from_inpox = driver
.findElement(By
.xpath("//div[@id='js_flighttype_tab_domestic']//input[@name='fromCity']"));
WebElement to_inpox = driver
.findElement(By
.xpath("//div[@id='js_flighttype_tab_domestic']//input[@name='toCity']"));
WebElement from_date = driver
.findElement(By
.xpath("//div[@id='js_flighttype_tab_domestic']//input[@name='fromDate']"));
WebElement sigleWayCheckBox = driver
.findElement(By
.xpath("//div[@id='js_flighttype_tab_domestic']//input[@class='inp_chk js-searchtype-oneway']"));
if (!sigleWayCheckBox.isSelected()) {
sigleWayCheckBox.click();
from_inpox.clear();
from_inpox.sendKeys("BJ");
Thread.sleep(8000);
By bj = new By.ByXPath(
"//div[@class='qcbox-fixed js-suggestcontainer']//td[contains(text(),'北京')]");
if (isElementPresent(driver, bj, 20)) {
driver.findElement(bj).click();
to_inpox.clear();
to_inpox.sendKeys("SH");
Thread.sleep(8000);
By sh = new By.ByXPath(
"//div[@class='qcbox-fixed js-suggestcontainer']//td[contains(text(),'上海')]");
if (isElementPresent(driver, sh, 20)) {
driver.findElement(sh).click();
// Actions actions = new Actions(driver);
// actions.moveToElement(from_inpox).click().perform();
// driver.findElement(
// By.xpath("//div[@data-panel='domesticfrom-flight-hotcity-from']//a[@class='js-hotcitylist' and text()='西安']"))
// .click();
// driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
// driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);
// actions.moveToElement(to_inpox).click().perform();
// driver.findElement(
// By.xpath("//div[@data-panel='domesticto-flight-hotcity-to']//a[@class='js-hotcitylist' and text()='北京']"))
// .click();
// driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
// driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);
from_date.clear();
from_date.sendKeys(getDateAfterToday(7));
WebElement search = driver
.findElement(By
.xpath("//div[@id='js_flighttype_tab_domestic']//button[@class='btn_search']"));
search.submit();
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);
WebElement page2 = driver.findElement(By
.xpath("//div[@id='hdivPager']/a[@value='2']"));
JavascriptExecutor jse = (JavascriptExecutor)
jse.executeScript("arguments[0].scrollIntoView()", page2);
page2.click();
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);
driver.findElement(
By.xpath("(//div[@class='avt_trans']//p[contains(text(),'每段航班均需缴纳税费')]/ancestor::div//div[@class='a_booking']/a)[3]"))
driver.findElement(
By.xpath("//div[@id='flightbarXI883']//div[@class='t_bk']/a"))
public static String getDateAfterToday(int dateAfterToday) {
Calendar cal = Calendar.getInstance();
cal.add(Calendar.DATE, +dateAfterToday);
System.out.println(cal.getTime().toString());
Date date = cal.getTime();
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
System.out.println(df.format(date));
return df.format(date);
* @author Young
* @param driver
* @param by
* @param timeOut
* @throws InterruptedException
public static boolean isElementPresent(WebDriver driver, final By by,
int timeOut) throws InterruptedException {
boolean isPresent = false;
Thread.sleep(timeOut * 1000);
List&WebElement& we = driver.findElements(by);
if (we.size() != 0) {
isPresent = true;
return isP
效果如下:
阅读(...) 评论()以下试题来自:
单项选择题Photoshop中当使用魔棒工具选择图像时,在“容差”数值输入框中,输入的数值是下列哪一个所选择的范围相对最大。 ( )A.5B.10C.15D.25
为您推荐的考试题库
你可能感兴趣的试题
1A.全选图像后,按Alt键用套索减去不需要的被选区域B.用钢笔工具进行选择C.使用魔棒工具单击需要选择的颜色区域,并且取消其“连续的”复选框的选中状态D.没有合适的方法 2A.此工具的“对齐的”复选框未被选中B.此工具的“对齐的”复选框被选中C.操作的方法不正确D.此工具的“用于所有图层”复选框被选中3A.Alt键B.Ctrl键C.Tab键D.Shift键4A.右击工具选项栏上的工具图标,从上下文菜单中选择“复位所有工具”B.执行“编辑-预置-常规”命令,在弹出的对话框中单击“复位所有工具”C.双击工具选项栏左侧的标题栏D.双击工具箱中的任何一个工具,在弹出的对话框中选择“复位所有工具”5A.多边形套索工具属于绘图工具B.可以形成直线型的多边形选择区域C.多边形套索工具属于规则选框工具D.按住鼠标键进行拖拉,就可以形成选择区域
热门相关试卷
最新相关试卷}

我要回帖

更多关于 易企秀输入框在哪里 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信