File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -6,16 +6,16 @@ class 私のテストクラス(セレニウムテストケース):
6
6
def test_例1 (self ):
7
7
self .を開く ("https://ja.wikipedia.org/wiki/" )
8
8
self .テキストを確認する ("ウィキペディア" )
9
- self .要素を確認する ('[title="メインページに移動する"]' )
10
- self .入力 ( "#searchInput" , "アニメ" )
11
- self .クリックして ("#searchButton " )
9
+ self .要素を確認する ('[title* ="メインページに移動する"]' )
10
+ self .JS入力 ( 'input[name="search"]' , "アニメ" )
11
+ self .クリックして ("#searchform button " )
12
12
self .テキストを確認する ("アニメ" , "#firstHeading" )
13
- self .入力 ( "#searchInput" , "寿司" )
14
- self .クリックして ("#searchButton " )
13
+ self .JS入力 ( 'input[name="search"]' , "寿司" )
14
+ self .クリックして ("#searchform button " )
15
15
self .テキストを確認する ("寿司" , "#firstHeading" )
16
16
self .要素を確認する ('img[alt="握り寿司"]' )
17
17
self .入力 ("#searchInput" , "レゴランド・ジャパン" )
18
- self .クリックして ("#searchButton " )
18
+ self .クリックして ("div.suggestions span.highlight " )
19
19
self .要素を確認する ('img[alt*="LEGOLAND JAPAN"]' )
20
20
self .リンクテキストを確認する ("名古屋城" )
21
21
self .リンクテキストをクリックします ("テーマパーク" )
Original file line number Diff line number Diff line change @@ -372,16 +372,16 @@ class 私のテストクラス(セレニウムテストケース):
372
372
def test_例1 (self ):
373
373
self .を開く(" https://ja.wikipedia.org/wiki/" )
374
374
self .テキストを確認する(" ウィキペディア" )
375
- self .要素を確認する(' [title="メインページに移動する"]' )
376
- self .入力( " #searchInput " , " アニメ" )
377
- self .クリックして(" #searchButton " )
375
+ self .要素を確認する(' [title* ="メインページに移動する"]' )
376
+ self .JS 入力( ' input[name="search"] ' , " アニメ" )
377
+ self .クリックして(" #searchform button " )
378
378
self .テキストを確認する(" アニメ" , " #firstHeading" )
379
- self .入力( " #searchInput " , " 寿司" )
380
- self .クリックして(" #searchButton " )
379
+ self .JS 入力( ' input[name="search"] ' , " 寿司" )
380
+ self .クリックして(" #searchform button " )
381
381
self .テキストを確認する(" 寿司" , " #firstHeading" )
382
382
self .要素を確認する(' img[alt="握り寿司"]' )
383
383
self .入力(" #searchInput" , " レゴランド・ジャパン" )
384
- self .クリックして(" #searchButton " )
384
+ self .クリックして(" div.suggestions span.highlight " )
385
385
self .要素を確認する(' img[alt*="LEGOLAND JAPAN"]' )
386
386
self .リンクテキストを確認する(" 名古屋城" )
387
387
self .リンクテキストをクリックします(" テーマパーク" )
You can’t perform that action at this time.
0 commit comments