Questions tagged [ruby-watir]

14 questions
5
votes
1 answer

Ruby on Rails how to get every row of a specific column of table? Loop through rows?

I have this table like in the image showed below: I am using Ruby Watir to get every row of the first column. https://dominiumestate.com/wp-content/uploads/2019/08/Capture.jpg I have tried this but I can't get every row of the table only the first…
Astrit Shuli
  • 619
  • 4
  • 20
2
votes
2 answers

Accessing browser dev tools and capturing network traffic using Watir

Have a requirement to capture network traffic from the browser while running automation test cases. Came across below post but not sure if it has been included as part of Watir 7. Appreciate if there is any example for tapping on to devtools and…
1
vote
0 answers
1
vote
2 answers

Ruby code to display table element details

I have a HTML which displays the Product Details in the following way:
userash
  • 1,353
  • 3
  • 9
  • 13
1
vote
1 answer

How to download a file using Watir 6.0

I'm trying to download a CSV file with the new Watir 6.0. I found the profile settings for Firefox: profile = Selenium::WebDriver::Firefox::Profile.new profile['browser.download.folderList'] = 2 profile['browser.download.dir'] =…
0
votes
0 answers

Handling Shadow Dom with Watir

How can I handle elements that are inside iframe which are again inside a shadow Dom using watir 7.2? Something like this:
#shadow-root (open)