I was looking for some plugin that could easily generate a CSS statement from my HTML template. So The moment I create a DOM element, should be possible to generate a CSS statement to access that DOM element.
Could be a simple one that just adds the whole DOM order from my outter element to the desire element. Any suggestions are welcome. Thanks
I'm finding the same like you, if you know something, tell me please.
But you can try it:
http://lab.xms.pl/css-generator/
I hope you can use it, #artdias90
Related
I need to navigate through a menu and select a submenu.
I'm using click element xpath as below:
//*[#id="gomenu68e1884541"]//nav/div/ul/li[3]/div/ul/li[2]/a
But it does not help me because the id is dynamic and changes every time, When I access the application
How can I navigate a menu-> submenu?
For more details on this, refer below mentioned image.
Can anyone help?
I've finally got it to work (even on the third level of the menu) using these commands:
Wait Until Page Contains Element
Sleep
Mouse Over
Click Link
And a mix of different xpath:
xpath=//*[#class="dropdown"]//a[contains(., 'Alumnos')]
xpath=//*[#class="dropdown"]/li[3]/div/ul/li[1]/div/ul/li[1]/a
Thanks everyone for your help
I have had the same issue with Xpath. js, vagy angular etc. based websites which are generates the content dinamically simply not works. I have spent a lot of time on my previous automation project, to find a sulution for this: building own xpath. Means not just Insect Element in Chrome and other browsers, you have to build them by yourself, while learning how the code and website works. This the the method you should follow:
get familiar with the front-end client's code
learn xpath
build your own xpath
You have to find out how you can reach the wanted element, without using #ids. Use css classes which are rarely changing that randomly, and find out the relations between your element. You have to use the following-sibling and text() and other less famous xpath selectors. I would suggest to you this
to get familiar with xpath. There wasn't any other way for me, but in the end I had an amazing, well formatted variable files, contains all the element's xpaths.
This code in the "element.style" exist in the DOM, but I cannot find it in the code I have. Another thing is that in the DOM it'll usually say where the code is (example: line 871), but it doesn't display that in this particular case. I have no idea why. Cannot anyone shed some insight to this?
If it helps at all I am using a Bootstrap theme and this particular portion involves the "owl carousel" DOM image
As others have commented, this style information is being added by JavaScript code. Specifically, if there's an "owl.carousel.js" floating around in your codebase, look for JQuery css calls that will look something like this example (from my copy of "owl.carousel.js"):
$this.css({"width": base.itemWidth})
I want to implement a drop down as show in the following figure. I am trying to use html, css and bootstrap. Could someone please help me in figuring out, how to write the css code in order to get such a drop down list.
Is it possible to achieve this using html and css or do we need a third party plugin?
Thanks in advance.
Yes it is posible, have a look to this link http://www.kevinfremon.com/create-a-custom-drop-down-list-using-just-css/
The options part can't be customised using css. In that case you'd need to use a third party library and there are plenty out there (eg: MUI)
Else the link suggested by kraiosis is perfect
I'm using the accounts-entry package with my meteor project and want to customize the {{> entrySignUp}} and {{> entrySignIn}}. What do I put as a selector in CSS to do this? I tried putting them in a <div> but it didn't make a difference? Does anyone know how to do this?
You can look at packages/accounts-entry/client/views/signUp in your project to see the templates used. Or just use the browser developer tools to inspect the dom. Either way, you should be able to find the ids and classes you need to override in your styles.
The views have been designed to work well with bootstrap 3, but theres nothing stopping you from customizing it.
I need to create HTML range input which change background. But I need only part of background according to the point which I am moving. There is screen how I image that it have to work.
Thanks for help.
That would require JavaScript. That would never be done without an expert or atleast intermediate level of knowledge in CSS, JavaScript.
I would try to provide you with the tutorials where you can learn the Library, but, it cannot be done this way! It would require alot of JS code.
http://api.jquery.com/css/ (jQuery CSS)
Use the above page to learn how to use and apply CSS styles using jQuery.