Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
933 views
by The go-to Tester (222 points)
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
by The go-to Tester (222 points)
Can I have your code sample?
by The go-to Tester (222 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 like 0 dislike
by The go-to Tester (222 points)
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.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...