PWA Automated test with Selenium IDE - javascript

I'm having trouble automating PWA tests using selenium IDE.
Indeed I fill a form and at the time of saving the button "css=.hover\3Aopacity-90" remains grayed whereas I filled all the obligatory fields.
I also have the same problem when I switch from one page to another with toaster eruption and when I want to select a label in a dropdown list through the search bar "id=headlessui-combobox-input-".
If you can help me to move forward please. Thanks

Related

Drop-down-menu not working on second page

I have to make a website for school and we have to make a drop-down-menu. I've made one and it works fine, but on my other pages the drop-down-menu won't open when I click on it.
Can somebody help me?
I'd recommend that you use the chrome developer tools to check and see what happens to the other pages when you click the button that's supposed to initiate the dropdown menu.
If nothing happens, right click the button and hit inspect in developer tools to verify that you're targeting the correct element, and to verify that the dropdown menu actually exists on all your pages.
Most likely you haven't linked the javascript file on the other pages. Can't say much without you showing what you've done first.

How to keep a hover effect by selecting a browser suggestion?

I have a WordPress + WooCommerce website and by hovering Login / Sign Up on the header it leads to open a dropdown box where you can enter login details or register. The kind of issue described below also occurs on official theme demo website, at https://xstore.8theme.com/
Now, if I click on "Username or email address" field, Google Chrome shows me an account suggestion based on previously saved accounts on this website. You could try by attempting to login with whatever credentials and if you save them on Chrome (even if wrong), the browser will suggest them to you from the next login attempt. If you just hover the suggestion, all the dropdown box disappears. I said, "just hover the suggestion", because actually you do not have time to click on it.
I suppose this is due to hover effect, in fact if you move the cursor out of the dropdown box, this last disappears, and so happens with the suggestion making it like it was out of the dropdown box.
You can watch a video of the issue at:
https://s.nimbusweb.me/share/3721505/q5vwlz9bho2yufufoiic
How could I solve that?
Thank you in advance,
Alberto
I've had this Problem many times with outdated versions of chrome.
Have you tried updating your browser?
Do you have the same issue in other browsers?
Running updated chrome, I have not experienced this issue on the Demo Page (https://xstore.8theme.com/)

handling popups with selenium using javascript

my goal is to enter a username and password into the popup box that appears whenever the page loads. I am using selenium for this task and so far everything that I have tried does not work
I tried using this but it still does not open browser.get("http://username:password#websitecom");
this is my first time working with selenium!
picture of the popup
Try this Website as a reference to solve your problem:
https://www.guru99.com/execute-javascript-selenium-webdriver.html

Python selenium webdriver - textbox and button won't work

I have been playing around with selenium webdriver library for python, I have some programming knowledge but almost none when related to webpages etc.
I am trying to login to this website https://freebitco.in/ I click on the login button, fill the textboxes and then click on the button with selenium but the page just refreshes leaving the inputs blank and nothing happens.
I have tried to manually (ctrl+V) inputing the text and then clicking on the button with selenium, in that case it works. I would love an answer for this fenomenon. I would also like to know how can a webpage differentiate between bot input and user input, from my point of view (no webpage knowledge) I can only see it being able to work with the guest timing etc to tell it's a bot or not, how can it see it is a bot writing in this textboxes? (if it is the case).
Thank you for your answers and forgive my poor english skills. (:
This is my code:
driver.find_element_by_class_name('login_menu_button').click()
driver.find_element_by_id('login_form_btc_address').send_keys(address)
driver.find_element_by_id('login_form_password').send_keys(password)
driver.find_element_by_id('login_button').click()
this is for the textboxes:
<input type="text" name="btc_address" id="login_form_btc_address">
and this is for the button
<input type="text" name="btc_address" id="login_form_btc_address">
From what I see on that page:
<li class="login_menu_button active">
LOGIN
</li>
So even though you are clicking on top menu, I think you are not opening login form Try to change the first click to be on link element:
driver.find_element_by_link_text('LOGIN').click()
Also you will probably need to synchronize between clicks (i.e. check that what you expected indeed happened)

Designing UI for a Google Chrome extension

I'm writing a plugin for Google chrome that works similarly to the Adobe's web-capture plugin for Mozilla Firefox. I need some help designing the UI for the extension. As of now, the extension has a button, next to the wrench icon, that, when clicked, converts the page to a PDF file. I need to add a drop-down menu, just as it is on Firefox, which should display other options for conversion, and providing the same functions in context menu as well. I'm not sure if it's possible to have a main button and a drop-down menu button, where the main button initiates conversion directly, and the drop-down menu button shows the drop down menu showing other options, in Google Chrome as nothing is mentioned about it's possibility on the Chrome Extension development page. I could probably have a pop-up page but that would come up when I would click the main button. Could someone help me with this? If it is possible to have a both main button, and a drop-down menu button, then how should I go about doing it? Or if it is that I would have to use a pop-up page to show the options, then where should I place my functions, which will be used by context menu APIs as well.
As far as i understand i wouldn't prefer having 2 buttons. What you can do is, have a drop down button and once that appears after clicking, you can have a big button inside that saying "PDFy my current page" and below you can have rest of the options. I guess having two button will unnecessarily bring confusion and will make browser cluttered.

Categories