Skip to content

Instantly share code, notes, and snippets.

@ishubin
Created December 16, 2014 16:04
Show Gist options
  • Save ishubin/ec79925c9faa94f59391 to your computer and use it in GitHub Desktop.
Save ishubin/ec79925c9faa94f59391 to your computer and use it in GitHub Desktop.
@@ import ../../meta/vars.spec
@@ import someSpec.js
======================================================================================
mobile-nav-item-header css .mmenu-opened .main-link.active
mobile-nav-item-header-2 css .mmenu-opened .main-link:nth-child(2).active
mobile-nav-item-header-3 css .mmenu-opened .main-link:nth-child(3).active
mobile-nav-item-header-4 css .mmenu-opened .main-link:nth-child(4).active
mobile-nav-item-list css .mmenu-opened .mmenu-super-submenu:not(.ng-hide)
======================================================================================
@ Global Nav | mobile
--------------------------------------------------------
mobile-nav-item-header
image: file ../dumps/mobile/subnav/${findMyDumpDir()}/objects/mobile-nav-item-header.png, ${imgErr}
mobile-nav-item-list
image: file ../dumps/mobile/subnav/${findMyDumpDir()}/objects/mobile-nav-item-list.png, ${imgErr}
this.findMyDumpDir = function () {
var element = find("mobile-nav-item-header-4");
if (element != null && element.getPageElement().isVisible()) {
return "3";
}
else {
element = find("mobile-nav-item-header-3");
if (element != null && element.getPageElement().isVisible()) {
return "2";
}
else {
element = find("mobile-nav-item-header-2");
if (element != null && element.getPageElement().isVisible()) {
return "1";
}
}
}
return "undefined";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment