Open Browser http://www.netflix.com safari
Maximize Browser Window
Sleep 2s
#Click Button xpath=//*[#id="cookie-disclosure"]/div/button
Click Link link:Sign In
#Click Link Account
#Click Element xpath=//*[#id="appMountPoint"]/div/div/div/div/div/div[1]/div[2]/a
#Sleep 4s
Wait Until Page Contains New to Netflix?
Close Browser
When I ran the above script I did not get any errors in MAC, but the page is not traversing from home page to sign-in page.
I tried both xpath & link. I didn't get any errors, in either case, but it's not going to the sign-in page.
Related
I want to do some price monitoring on the page https://reiseauskunft.bahn.de/ but when I open/navigate, a coockie banner appears in the foreground and an acceptance buttton must be clicked, before any inquiries can be done. Using the inspect facility of the browser I have noticed the buttons are within a
#shadow-root (open)
Addressing the button directly e.g.
remDr$findElement('css selector', 'button.btn:nth-child(1)')
does not find the element.
Note: A solution using Python and the selenium module might help me to get on the right track.
I have this window that it is supposed to route to other elements on the same page, but whenever you click on one of the three links, the browser reach the tag, but the window doesn't close, you need to click on the (x) to close it. I am a NodeJS dev, this is the first time I fight againts Wordpress. The X uses some lottie function that I can't reach on the window content.
My app behave like this:
Add items -> user clicks Add button -> app return to main page
IF there are too many items, after user clicks Add button -> new dialog prompt 'waiting...', then user click OK button -> user click send button again
it is a loop if the new dialog prompt after send button is clicked. (from manual testing, this dialog could appear 2-3 times only).
I have written test case after click add ->
if there is dialog appear then click ok -> click add -> back to mainpage.
it is working fine when the new dialog appear.
I noticed if the new dialog does not appear, ROBOT still proceed to the ${VERIFIED} lines....this causing the script pausing for quite sometimes. no error but how do I get rid of it?
However the application may prompt the dialog many times when server loading is slow.
I want robot press this ok whenever dialog appear again then click add.
How do I achieve it?
Add Item
Click Add
${VERIFIED} Run Keyword And Return Status Wait Until Page Contains Element ${ANDROID-WIDGET-TEXT-VIEW}\[#text='Please wait'] 3s
Run Keyword If ${VERIFIED} Wait Until Page Contains And Click ${ANDROID-WIDGET-BUTTON}\[#text='OK']
Run Keyword If ${VERIFIED} Click Add
Wait Until Page Contains Navigation Bar Title MainPage
In flex-3, when I click on a link, a url is called using navigateToURL("someurl",somecustomfixedname). IE 8,9 and chrome opens that url once in a tab/window(depends on tab settings), if you click the link two or more times same window/tab will reloaded, which is expected.
But in IE 11, on first click a tab/window is opened, second click another tab/window is opened and from third click on wards the second tab/window gets reloaded. I have tried changing the tabs settings in IE11 same as of IE8, it didn't help. Please suggest some solution.
This following link has similar to my question(but in javascript)"Why doesn't window.open(url, name) open in the SAME window with IE11?". but no solution provided.
I am stuck with this issue, if any one faced this problem kindly suggest a solution.
In my use case, I have a page that deep links back to my app. When I open this page in Chrome custom tab, I am able to get back to my app by clicking the deep link but the issue is when I click on the device back button, the chrome tab is still visible.
Is there any way I can close the chrome custom tab when the user is back to my app/activity.
Setting the below flag while opening chrome custom tab seems to resolve the issue for me
http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_NO_HISTORY
As #Jaspinder Kaur mentioned: you need to add this on your flag:
mCustomTabsIntent = new CustomTabsIntent.Builder().build();
mCustomTabsIntent.intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY)
AND:
If you set your app to be singleInstance or singleTop, then when you go back to it using an intent, the framework will finish Custom tab activity as well.