On Oct 26, 5:42 pm, Ethan <
notet...@gmail.com> wrote:
> opening in a new tab is odd behavior. this is probably related to the 'open
> new windows in tabs' setting - seehttps://
github.com/vapir/vapir/wiki/Browser-Settings
> as for connecting, make sure you have the appropriate extension installed -
> mozrepl or jssh.
> To set Vapir to use MozRepl instead of JSSH, set the
> config<
https://github.com/vapir/vapir/wiki/Configuring-Vapir>key
> firefox_extension to "mozrepl".
Thanks. I resolved this issue by doing
Vapir::Firefox.config.firefox_profile = 'test'
I have one remaining problem: My test must click OK on a dialog box. I
know that the Firefox driver does not support set_text_field, so I
have this code:
modal = $browser.modal_dialog!
if $browserType != 'firefox'
modal.set_text_field(jobName)
end
modal.click_button('OK')
On IE, this works fine, but on Firefox I get
Vapir::Exception::NoMatchingWindowFoundException: No popup was
found on the browser
(And yes, the modal dialog is actually shown). BTW, I use the mozrepl
extension.