Automatic Operation of Browser using Selenium and Java by Takahiro Kurose

Automatic Operation of Browser using Selenium and Java by Takahiro Kurose

Author:Takahiro Kurose [Kurose, Takahiro]
Language: eng
Format: azw3
Published: 2018-04-21T16:00:00+00:00


The search result is shown below.

Since the result says "1 of 1", we can see that the element can be identified as one. Therefore, we use this xpath to create code for automatic operation.

Automatic operation code

driver.findElement(By.xpath("//a[text()='Add New' and @class='page-title-action']")).click();

【7】

Enter "This is title" in the title

HTML of operation target element

<input name="post_title" size="30" value="" id="title" spellcheck="true" autocomplete="off" type="text">



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.