3

Your HTML code doesn't contain disabled attribute to disable the field its being disabled by the class name x28o xfn p_AFDisabled p_AFTextOnly when it is enabled classname changes to x28o xfn p_AFTextOnly Probably you should validate with the class name instead of using elementisclickable Try this below wait.until(EC.visibility_of_element_located((By....


2

No, Google Chrome in headless mode doesn't supports extensions. In the one of his comment, @alexclarke@chromium.org clearly mentioned: I realize a lot of folks would like to use extensions with headless but unfortunately that's a large project which we have /no plans to do/. The problem is Headless Chromium is a content embedder which means it doesn't ...


2

This Google Support page states that sign in via browsers that "Use automation testing frameworks" is being disabled for the following security reasons and Google advices to do "Sign in with Google" using browser-based OAuth 2.0 authentication service. As some websites, like stackoverflow.com allow you to sign in to their services using "Sign in with Google"...


2

enter code hereI assume you have only one span tag. This xpath will locate the element. //span[contains(@class,'Trsdu')] Below code will return you the 238.67 value driver.find_element_by_xpath("//span[contains(@class,'Trsdu')]").text


1

You are not returning the array you have add target as return ["car","bus"] instead of ["car","bus"] and use for each ${vehicles} iterator In selenium, we use name in the value field (to store something to the variable) and ${name} in target while targeting (when need to access the stored variable) Now you will have car and bus respectively for each ...


1

Open browser which controlled by selenium Open StackOverflow site manually(or another site which have authorization with google) Perform authorization with google manually Then when you run your code again with gmail authorization it should work fine.


1

This will help you //p[@class='customer-service']/text()[normalize-space()][1]


1

In manual launch you would have checked the a tag attributes after clicking image preview flyout Attribute snapshot before image preview Attribute snapshot with image preview Attribute snapshot after closing the image preview


1

If you're dealing with data provider that returns iterator, then you have to return Iterator<Object[]>, not Iterator<Object> Otherwise you will need to return Object[][]


1

When you do driver.findElements(By.xpath("//input[@type='text' or @type='password']")); you just get a list of DOM nodes with specified properties. That doesn't mean they are all ready to take your input. Hence you are encountering some that is not.. There are basically to ways you can to go: Good way: Do not take all inputs. Take the only inputs ...


1

https://selenium-python.readthedocs.io/api.html gives difference between submit() and click(). The submit() function is an easier way to submit a form : from selenium import webdriver username = "Username" password = "Password" driver = webdriver.Chrome("locationpath\\chromedriver.exe") driver.get("website") ...


1

Span inside is usually used for styling so, getText Assumes all child elements are part of the actual text. Couldn't find a direct way to achieve what you are trying to do, The workaround is to : First solution: just get the text from both and replace the unwanted part parent= driver.find_elements_by_tag_name('a') child= driver.find_elements_by_tag_name('...


1

In my experience, querying the DB to assert content is correct in the front-end is rarely done. The main idea behind the E2E automation tests is to ensure the functionality of the web elements are working and present. Things like: Links are clickable and navigate to the correct page Forms can be filled out User sign up, user login, user modification (...


1

I don't think querying the DB for verification is necessary. Since your app FE is connected to API, you just need to query through API to verify things. The data verification should be done through testing of the APIs themselves.


Only top voted, non community-wiki answers of a minimum length are eligible