Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ concierge.exe
logs/
nucleus.log
artifacts
target/
target/
.idea
6 changes: 3 additions & 3 deletions src/main/java/Steps/BingSearchSteps.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void that_I_am_on_the_Bing_app()
public void click_on_the_text_box()
{
WebElement searchBox = driver.findElement(By.xpath("//textarea[@id='sb_form_q']"));
searchBox.sendKeys("LambdaTest");
searchBox.sendKeys("HyperExecute");

try {
Thread.sleep(2000);
Expand All @@ -46,7 +46,7 @@ public void click_on_the_text_box()
}
searchBox.sendKeys(Keys.ENTER);
try {
Thread.sleep(1000);
Thread.sleep(3000);
} catch (InterruptedException e) {
e.printStackTrace();
}
Expand All @@ -55,7 +55,7 @@ public void click_on_the_text_box()
@Then("^click on the first result$")
public void click_on_the_first_result()
{
WebElement secondCheckBox = driver.findElement(By.linkText("Most Powerful Cross Browser Testing Tool Online"));
WebElement secondCheckBox = driver.findElement(By.xpath("//a[contains(normalize-space(),'HyperExecute - AI-Powered Blazing Fast')]"));
secondCheckBox.click();
try {
Thread.sleep(2000);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/Steps/SeleniumPlaygroundSteps.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void WhenClickSubmitButton() throws InterruptedException
{
/* Click on the Submit button */
WebDriverWait wait = new WebDriverWait(driver, 10);
WebElement element = wait.until(ExpectedConditions.elementToBeClickable(By.cssSelector(".btn")));
WebElement element = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//button[text()='Submit']")));
((JavascriptExecutor)driver).executeScript("arguments[0].click();", element);
Thread.sleep(2000);
}
Expand Down