Cucumber + Selenium - How to count the number of rows in a table?
how to show element in browed page in selenium testing?
How do I open a new window in Capybara with Selenium webdriver?
Using css child selector in ruby selenium-webdriver element find_elements
Upgrade old project to capybara
What are some alternatives to Selenium?
Undefined method `col_span' for class `Watir::TableCell' (NameError)
Selenium RC with safari issues - Selenium::WebDriver::Error::UnknownError: Executor has not been started yet
:eq pseudo selector not working with Selenium WebDriver / Chrome
Ruby/Capybara Selenium storing the href value of an image in an auto-rotating carousel
You can use:
page.should have_css "#product_container tr", :count => number_of_rows.to_i
Check out the latest blogs from LambdaTest on this topic:
When someone develops a website, going live it’s like a dream come true. I have also seen one of my friends so excited as he was just about to launch his website. When he finally hit the green button, some unusual trend came suddenly into his notice. After going into details, he found out that the website has a very high bounce rate on Mobile devices. Thanks to Google Analytics, he was able to figure that out.
We are living in an era where software development demands for automation. Software development methodologies such as RAD(Rapid Application Development), Agile and so on requires you to incorporate automation testing as a part of your release cycle. There exist numerous test automation frameworks used for automation testing. Today, I will be picking up Watir an open source, selenium-based web driver used for browser automation. Cross browser automation testing using Watir would help you to ensure a good rendering user interface of your web app. If you are a beginner to automation testing and are unaware of basics then don’t worry as I will also be talking about browser automation, cross browser automation, parallel testing and what makes Watir special than other several tools and libraries. Without further ado, here we go!
When end users are surfing the web, either for studies or for general purpose like online shopping or bill payment, only one thing matters to them. The site should work perfectly. It’s bad news for a developer or a site owner if their site does not work perfectly in the browser preferred by the user. Instead of switching browsers they tend to move to a different website that serves the same purpose. That is the reason, cross browser testing has become an important job to perform before deploying a developed website, to ensure that the developed site runs properly in all browsers in different devices and operating systems. This post will focus on certain strategies that will make cross browser testing much easier and efficient.
This article is a part of our Content Hub. For more in-depth resources, check out our content hub on Automation Testing Tutorial.
With the introduction of Angular JS, Google brought a paradigm shift in the world of web development. Gone were the days when static web pages consumed a lot of resources and resulted in a website that is slower to load and with each click on a button, resulting in a tiring page reload sequence. Dynamic single page websites or one page website became the new trend where with each user action, only the content of the page changed, sparing the user from experiencing a website full of slower page loads.
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Perform automation testing with Selenium on LambdaTest, the most powerful, fastest, and secure cloud-based platform to accelerate test execution speed.
Test Now