summaryrefslogtreecommitdiffstats
path: root/features/step_definitions/torified_browsing.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/step_definitions/torified_browsing.rb')
-rw-r--r--features/step_definitions/torified_browsing.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/features/step_definitions/torified_browsing.rb b/features/step_definitions/torified_browsing.rb
new file mode 100644
index 00000000..770fda52
--- /dev/null
+++ b/features/step_definitions/torified_browsing.rb
@@ -0,0 +1,12 @@
+When /^I open a new tab in the Tor Browser$/ do
+ next if @skip_steps_while_restoring_background
+ @screen.click("TorBrowserNewTabButton.png")
+end
+
+When /^I open the address "([^"]*)" in the Tor Browser$/ do |address|
+ next if @skip_steps_while_restoring_background
+ step "I open a new tab in the Tor Browser"
+ @screen.click("TorBrowserAddressBar.png")
+ sleep 0.5
+ @screen.type(address + Sikuli::Key.ENTER)
+end