Kitty2014 / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

can't get the edit box in the iframe of the H5 page #636

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.open the H5 login page 
2.trying to get the WebElement of the edit box in the iframe.
3.Could NOT find the web element.

What is the expected output? What do you see instead?

It should click on the edit box in the iframe.
What version of the product are you using? On what operating system?
robotium 5.2.2

Please provide any additional information below.

<body>
<div id="logo"></div>
<div id="content" style="margin-top: -15px;">
<div class="authorize">
<div id="login">
<iframe id="login_frame" width="100%" height="250" frameborder="0" 
data-spm-act-id="0.0.0.i1.MmjSqR" 
src="http://login.waptest.tt.com/login/login.htm?ttid=10000@oauth_wap&redirectUR
L=http%3A%2F%2Foauth.waptest.tt.com%2Fauthorize%3Ftrack_id%3D5f1e936e-bc97-4587-
8675-80db38950d40%26redirect_uri%3Dwww.baidu.com%26client_id%3D618698%26login_ty
le%3Dapp_login%26response_type%3Dcode%26from%3Dgc%26bind_uuid%3D%26auth_login%3D
true" allowtransparency="true" scrolling="no">
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" 
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<body>
<script id="tb-beacon-aplus" src="//b.tbcdn.cn/s/aplus_v2.js" 
exparams="category=&userid=&aplus&yunid=&asid=AADHFVdUkE11rVeyU+M=">
<script>
<img width="0" height="0" 
src="https://umidstable.tt.com/dc.htm?token=Tb0305942ed6ba857256e3c440f013121141
4993351767">
<div class="login_hd">
<div class="bd">
<div class="box">
<div class="detail">
<p class="blue-box">如您在电脑上已注册帐号,可直接登录。</p>
<form autocomplete="off" 
action="http://login.waptest.tt.com/login.htm?ttid=10000%40oauth_wap&sid=0c1cee1
9ba2ec78e91b3be21ef6790eb&_input_charset=utf-8" method="post" name="user_login">
<input type="hidden" value="m1x1dxlon" name="_tb_token_">
<p class="mt">
会员名或手机号
<br>
<input type="text" value="" name="TPL_username">
</p>
<p class="mt">
密码(区分大小写)
<br>
<input type="password" name="TPL_password">
</p>
<input type="hidden" value="10000@oauth_wap" name="ttid">
<p class="mt">
<input type="hidden" value="LoginAction" name="action">
<input type="hidden" value="1" name="event_submit_do_login">
<input type="hidden" 
value="http://oauth.waptest.tt.com/authorize?track_id=5f1e936e-bc97-4587-8675-80
db38950d40&redirect_uri=www.baidu.com&client_id=6186&login_tyle=app_login&respon
se_type=code&from=gc&bind_uuid=&auth_login=true" name="TPL_redirect_url">
<input type="hidden" value="" name="ssottid">
<input type="hidden" value="0c1cee19ba2ec78e91b3be21ef6790eb" name="sid">
<input type="hidden" value="Tb0305942ed6ba857256e3c440f0131211414993351767" 
name="_umid_token">
<input type="submit" value="登录">

忘记密码:请电脑登录www.taobao.com找回
</p>
</form>
</div>
</div>
</div>

Original issue reported on code.google.com by tytia...@gmail.com on 3 Nov 2014 at 7:02

GoogleCodeExporter commented 9 years ago
Thanks for reporting this. Would it be possible for you to share an app that 
exhibits this issue? 

Original comment by renasr...@gmail.com on 3 Nov 2014 at 4:10

GoogleCodeExporter commented 9 years ago
It hard to share the app, could you provide the information that if the 
robotium support the iframe? thanks.

Original comment by tytia...@gmail.com on 4 Nov 2014 at 5:36

GoogleCodeExporter commented 9 years ago
Seems like it doesn't. 

Original comment by renasr...@gmail.com on 4 Nov 2014 at 3:58