Welcome to the Question and Answer site for Software Testing Professionals

You can get your queries resolved from Software Testing Professionals.

Ask a Question

Get answers and give answers to questions from other members.

View All Questions

Get votes and earn points to build your reputation in community.

View Hot Questions

0
org.openqa.selenium.TimeoutException: timeout: Timed out receiving message from renderer: 190.424 error ?

Open 1 Answers 110 Views
0 1
org.openqa.selenium.TimeoutException: timeout: Timed out receiving message from renderer: 190.424 error how to resolve it?

Here are my browser and the driver information.

Build info: version: '2.53.1'
os.name: 'Windows Server 2012 R2'
chrome=60.0.3112.113
2Comments
commented by (200 points)
Can I have your code sample?
commented by (200 points)
Sure, Its:

test = extent.startTest("TestCase for Mobile services");
 driver.get(datafile.getData("testURL"));
 driver.findElement(uimap.getLocator("search_textBx")).click();
 driver.findElement(uimap.getLocator("search_textBx")).sendKeys(datafile.getData("SerchKeyword_text_01"));
 driver.findElement(uimap.getLocator("search_button")).click();
 EssentialMethod.threadSleepMethod(4000);
 WebDriverWait wait = new WebDriverWait(driver,30);
 wait.until(ExpectedConditions.visibilityOfElementLocated(By.tagName("h2")));

 List<WebElement> xp = driver.findElements(By.tagName("h2"));
 int count = xp.size();
 System.out.println(count);
 for(int i=1; i<count; i++){
 String text = xp.get(i).getText();
 Reporter.log("Result From Search Keyword : "+text, true);
 test.log(LogStatus.INFO, "Result From Search Keyword====> "+text);
 }

 WebElement title = driver.findElement(uimap.getLocator("Title_name"));
 Assert.assertTrue(title.isDisplayed(),"result is not fount ");
 test.log(LogStatus.PASS, "Assert pass as the condition is true");
 test.log(LogStatus.INFO, title.getText());
 Reporter.log(title.getText(), true);

1 Answer

0
0
Try to use absolute XPath. Because,

because sometimes if there is any one element is present with tag-name H2 the script will fail.

Absolute XPath should be helpful.
answered by (200 points)

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

We have resolved 1.2k+ Software Testing queries!

Software Testing Board Weekly update

We will send you handpicked questions that you would love to answer.

View previous campaigns.

Top Contributors

...