Questions tagged [selenium-ruby]
10 questions
4
votes
1 answer
I want to call def setup method before all tests in minitest ruby
This is my code
class TestLogin < MiniTest::Test
def setup
@driver=Selenium::WebDriver.for :firefox
@driver.manage.window.maximize
@driver.navigate.to "http://google.com"
end
def test_case1
puts "testcase1"
end
def…

Rohit Doraya
- 119
- 1
- 1
- 16
4
votes
1 answer
Selenium Ruby - Switch frame by class attribute
I'm using Selenium's Ruby bindings and I'm trying to make the WebDriver switch to an iFrame which is identifiable only by a class attribute.
Essentially I'm trying to achieve the equivalent of this Java…

eladr
- 268
- 7
- 18
2
votes
1 answer
Running selenium test against multiple websites with a different sub-domain
I have a test working when I hard code a URL in the ruby file for Selenium to execute however I need to run the same test against multiple URLS with just a different sub-domain
When I run the following I get an error that split is an unknown…

David Hurl
- 25
- 4
2
votes
3 answers
How to run chrome driver in background using selenium with Ruby for Mac OSx?
Sometimes, the browser window comes to the foreground and I'm clicking it accidentally which makes the test fails on some occasions. So, I just want to know, is there any way that I can keep the chrome driver window in the background.
Details:
<…

Jaden Smith
- 21
- 2
1
vote
1 answer
Firefox stuck at Login operation with Selenium-Webdriver
I'm trying to execute Selenium-webdriver code written in Ruby for firefox.
I'm using firefox 45.0.1 because I use ruby 2.1.10 and Selenium-WEbdriver-2.53.4
When I execute Selenium opens firefox, enters address and enters username and password and…

mac
- 863
- 3
- 21
- 42
1
vote
0 answers
How can I select multiple options from a select list in ruby using selenium webdriver
I want to select multiple options.
Then I want to verify it whether it is selected or not?
Here is my code:
require 'selenium-webdriver'
class Ques7
def test_multiple_select
driver = Selenium::WebDriver.for :firefox
driver.get(url)
…

J.Adhikari
- 125
- 1
- 13
0
votes
1 answer
Enter text in browser watir, ruby
I'm using watir to automate a task. After being logged in, i need to enter a text, my cursor is already on the message window so no need to locate the element, just need to type my text and send(:enter).
By the way, i can not locate the input…

SébastienR
- 11
- 5
0
votes
2 answers
Ruby Selenium ActionBuilder send_keys method duplicating the strings I send
So let say I have an array called list that contains strings per below, when I loop through the array to send_keys each items from the array onto an online text editor element which already has focus:
list = ["First", "Second", "Third"]
for index…

Syed Abbas
- 15
- 5
0
votes
0 answers
Not able to click on facebook app permission page
I am automating facebook signup process with app permission. After facebook login, app permission page is showing on facebook. I want to click on Continue button but not able to click on this button. I am using watir/selenium…

Rohit Doraya
- 119
- 1
- 1
- 16
0
votes
1 answer
How to use relative path in Ruby Selenium WebDriver to download a file using Firefox?
I am using selenium web driver and downloading .pdf files from internet using firefox, but i could not able to save these files on local machine using relative path ( i am using windows 7 32 bit machine ). It is working fine if i am using absolute…

Napendra Singh
- 23
- 1
- 3