Need help to Generate Xpath

56 views
Skip to first unread message

Ashish b lal

unread,
Nov 20, 2017, 5:32:18 AM11/20/17
to seleniu...@googlegroups.com

button id="activateplanbutton" class="btn btn-primary btn-block btn-lg spacer-top-xs" ng-disabled="PCtrl.buttonDisabled" ng-click="PCtrl.submitPaymentForm()" type="submit">
--
Hope to hear soon from you.
    
Thanks & Regards,
Ashish.B.LAL

Ripon Al Wasim

unread,
Nov 20, 2017, 6:53:10 AM11/20/17
to seleniu...@googlegroups.com
The element has ID, so it's better to use ID. Why do you want to use XPath? Anyway, the XPath should be --

//button[@id='activateplanbutton']

or,

//button[@class='btn btn-primary btn-block btn-lg spacer-top-xs']

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAA9WrsxcQu55P7zObVhnEXiKGGzNT38fXLPD7P4-oikWobFZvA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

oleksandr...@gmail.com

unread,
Dec 3, 2017, 11:11:47 PM12/3/17
to Selenium Users
//button[@class='btn btn-primary btn-block btn-lg spacer-top-xs']
2nd variant is not good because of exact comparison to class-list.  List of classes can be changed any time with javascript etc




понедельник, 20 ноября 2017 г., 13:53:10 UTC+2 пользователь Ripon Al Wasim написал:
The element has ID, so it's better to use ID. Why do you want to use XPath? Anyway, the XPath should be --

//button[@id='activateplanbutton']

or,

//button[@class='btn btn-primary btn-block btn-lg spacer-top-xs']
On Mon, Nov 20, 2017 at 2:31 AM, Ashish b lal <stryke...@gmail.com> wrote:

button id="activateplanbutton" class="btn btn-primary btn-block btn-lg spacer-top-xs" ng-disabled="PCtrl.buttonDisabled" ng-click="PCtrl.submitPaymentForm()" type="submit">
--
Hope to hear soon from you.
    
Thanks & Regards,
Ashish.B.LAL

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.

Veena K

unread,
Dec 4, 2017, 2:13:09 AM12/4/17
to Selenium Users
Hi All,

Am using selenium - 3.6.0,Google chrome browser :Version 62.0.3202.94
which version google chrome driver i should install...presently am using version v2.9.248315 ,which is throwing error "You are using unsupported command line flag".

⇜Krishnan Mahadevan⇝

unread,
Dec 4, 2017, 2:15:19 AM12/4/17
to Selenium Users
Veena,

You should always be able to find the latest chromedriver from here : https://sites.google.com/a/chromium.org/chromedriver/downloads

Latest one currently is : 2.33

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/8f5051c1-4eb9-4fbf-883d-ec76c214fd74%40googlegroups.com.

Veena K

unread,
Dec 4, 2017, 2:29:24 AM12/4/17
to Selenium Users
Thanks Krishnan ....it is working now....


On Monday, December 4, 2017 at 12:45:19 PM UTC+5:30, Krishnan Mahadevan wrote:
Veena,

You should always be able to find the latest chromedriver from here : https://sites.google.com/a/chromium.org/chromedriver/downloads

Latest one currently is : 2.33

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

On Mon, Dec 4, 2017 at 12:41 PM, Veena K <veena...@gmail.com> wrote:
Hi All,

Am using selenium - 3.6.0,Google chrome browser :Version 62.0.3202.94
which version google chrome driver i should install...presently am using version v2.9.248315 ,which is throwing error "You are using unsupported command line flag".

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.

Veena K

unread,
Dec 4, 2017, 5:44:57 AM12/4/17
to seleniu...@googlegroups.com
Hi All,

which is the version of FireBug that can be used for the browser Firefox Quantum (version 57.0.1)



--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/7S2VorDyKnc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/94c1fc93-559c-456d-b9e8-35367b92d933%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Thanks & Regards,
Veena.K
 


Reply all
Reply to author
Forward
0 new messages